Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 547266e4 authored by Roel Kluin's avatar Roel Kluin Committed by Len Brown
Browse files

ACPI: thinkpad-acpi: second TP_EC_FAN_FULLSPEED should be TP_EC_FAN_AUTO



fix bug in safety net for TPEC fan control mode
eaa7571b

Signed-off-by: default avatarRoel Kluin <12o3l@tiscali.nl>
Acked-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 1cee5cce
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -4790,7 +4790,7 @@ static int fan_set_level(int level)
		 * or FULLSPEED mode bits and just ignore them */
		 * or FULLSPEED mode bits and just ignore them */
		if (level & TP_EC_FAN_FULLSPEED)
		if (level & TP_EC_FAN_FULLSPEED)
			level |= 7;	/* safety min speed 7 */
			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 */
			level |= 4;	/* safety min speed 4 */


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