ACPI: thinkpad-acpi: add a safety net for TPEC fan control mode
commitea710fe36dc13c25c4034d09f11dd5d0a97dc248
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 24 Apr 2007 03:40:26 +0000 (24 00:40 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 7 Jul 2007 12:42:34 +0000 (7 09:42 -0300)
tree2cce2ea8072f8fab1994c372b12b01ca5def2143
parent78adf01fe2b362f6a753a4399642c79e56b88bed
ACPI: thinkpad-acpi: add a safety net for TPEC fan control mode

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: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
drivers/misc/thinkpad_acpi.c