Skip to content

Commit c874b6d

Browse files
t-8chjwrdegoede
authored andcommitted
platform/x86: asus-wmi: Add quirk wmi_ignore_fan
Some laptops have a fan device listed in their ACPI tables but do not actually contain a fan. Introduce a quirk that can be used to override the fan detection logic. This was observed with a ASUS VivoBook E410MA running firmware E410MAB.304. Signed-off-by: Thomas Weißschuh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent db94948 commit c874b6d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

drivers/platform/x86/asus-wmi.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,9 @@ static int asus_wmi_fan_init(struct asus_wmi *asus)
22432243
asus->fan_type = FAN_TYPE_NONE;
22442244
asus->agfn_pwm = -1;
22452245

2246-
if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_CPU_FAN_CTRL))
2246+
if (asus->driver->quirks->wmi_ignore_fan)
2247+
asus->fan_type = FAN_TYPE_NONE;
2248+
else if (asus_wmi_dev_is_present(asus, ASUS_WMI_DEVID_CPU_FAN_CTRL))
22472249
asus->fan_type = FAN_TYPE_SPEC83;
22482250
else if (asus_wmi_has_agfn_fan(asus))
22492251
asus->fan_type = FAN_TYPE_AGFN;

drivers/platform/x86/asus-wmi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ struct quirk_entry {
3838
bool store_backlight_power;
3939
bool wmi_backlight_set_devstate;
4040
bool wmi_force_als_set;
41+
bool wmi_ignore_fan;
4142
enum asus_wmi_tablet_switch_mode tablet_switch_mode;
4243
int wapf;
4344
/*

0 commit comments

Comments
 (0)