mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
ACPI: thinkpad-acpi: second TP_EC_FAN_FULLSPEED should be TP_EC_FAN_AUTO
fix bug in safety net for TPEC fan control mode
eaa7571b2d
Signed-off-by: Roel Kluin <[email protected]>
Acked-by: Henrique de Moraes Holschuh <[email protected]>
Signed-off-by: Len Brown <[email protected]>
This commit is contained in:
parent
1cee5cce97
commit
547266e46c
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue