Skip to content

Commit

Permalink
ACPI: thinkpad-acpi: second TP_EC_FAN_FULLSPEED should be TP_EC_FAN_AUTO
Browse files Browse the repository at this point in the history
fix bug in safety net for TPEC fan control mode
eaa7571

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Roel Kluin authored and Len Brown committed Feb 7, 2008
1 parent 1cee5cc commit 547266e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -4790,7 +4790,7 @@ static int fan_set_level(int level)
* or FULLSPEED mode bits and just ignore them */
if (level & TP_EC_FAN_FULLSPEED)
level |= 7; /* safety min speed 7 */
else if (level & TP_EC_FAN_FULLSPEED)
else if (level & TP_EC_FAN_AUTO)
level |= 4; /* safety min speed 4 */

if (!acpi_ec_write(fan_status_offset, level))
Expand Down

0 comments on commit 547266e

Please sign in to comment.