• Henrique de Moraes Holschuh's avatar
    ACPI: thinkpad-acpi: add a safety net for TPEC fan control mode · eaa7571b
    Henrique de Moraes Holschuh authored
    The Linux ThinkPad community is not positive that all ThinkPads that do
    HFSP EC fan control do implement full-speed and auto modes, some of the
    earlier ones supporting HFSP might not.
    
    If the EC ignores the AUTO or FULL-SPEED bits, it will pay attention to the
    lower three bits that set the fan level.  And as thinkpad-acpi was leaving
    these set to zero, it would stop(!) the fan, which is Not A Good Thing.
    
    So, as a safety net, we now make sure to also set the fan level part of the
    HFSP register to speed 7 for full-speed, and a minimum of speed 4 for auto
    mode.
    Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
    Signed-off-by: default avatarLen Brown <len.brown@intel.com>
    eaa7571b
thinkpad_acpi.c 91.1 KB