Skip to contentSkip to conversation

platform/x86: thinkpad_acpi: Add support for dual fan control

PATCH In review Jimmy Wang 2 participants 2 messages Nov 8, 2021 x86 platform drivers

lore
Share & tools
lore

Jimmy Wang

author
#0 lore raw

PATCH 1/1 platform/x86: thinkpad_acpi: Add support for dual fan control

This adds dual fan control for P1 / X1 Extreme Gen4

---
 drivers/platform/x86/thinkpad_acpi.c | 1 +
 1 file changed, 1 insertion(+)
drivers/platform/x86/thinkpad_acpi.c +1 -0
index 9c632df734bb..eb201d001075 100644
@@ -8766,6 +8766,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
 	TPACPI_Q_LNV3('N', '2', 'E', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (1st gen) */
 	TPACPI_Q_LNV3('N', '2', 'O', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (2nd gen) */
 	TPACPI_Q_LNV3('N', '2', 'V', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (3nd gen) */
+	TPACPI_Q_LNV3('N', '4', '0', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (4nd gen) */
 	TPACPI_Q_LNV3('N', '3', '0', TPACPI_FAN_2CTL),	/* P15 (1st gen) / P15v (1st gen) */
 	TPACPI_Q_LNV3('N', '3', '2', TPACPI_FAN_2CTL),	/* X1 Carbon (9th gen) */
 };
Signature · 1 line
2.31.1
#1 lore raw

Thanks Jimmy,

Quoted 13 lines · Jimmy Wang

This adds dual fan control for P1 / X1 Extreme Gen4

---
  drivers/platform/x86/thinkpad_acpi.c | 1 +
  1 file changed, 1 insertion(+)
drivers/platform/x86/thinkpad_acpi.c +0 -0
index 9c632df734bb..eb201d001075 100644

drivers/platform/x86/thinkpad_acpi.c static const struct tpacpi_quirk fan_quirk_table[] __initconst = { · line 8772

Quoted 7 lines
drivers/platform/x86/thinkpad_acpi.c +1 -0
@@ -8766,6 +8766,7 @@ static const struct tpacpi_quirk fan_quirk_table[] __initconst = {
  	TPACPI_Q_LNV3('N', '2', 'E', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (1st gen) */
  	TPACPI_Q_LNV3('N', '2', 'O', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (2nd gen) */
  	TPACPI_Q_LNV3('N', '2', 'V', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (3nd gen) */
+	TPACPI_Q_LNV3('N', '4', '0', TPACPI_FAN_2CTL),	/* P1 / X1 Extreme (4nd gen) */
  	TPACPI_Q_LNV3('N', '3', '0', TPACPI_FAN_2CTL),	/* P15 (1st gen) / P15v (1st gen) */
  	TPACPI_Q_LNV3('N', '3', '2', TPACPI_FAN_2CTL),	/* X1 Carbon (9th gen) */
  };

Looks good. I have no concerns.

Mark