]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: thinkpad_acpi: Correct dual fan probe
authorMark Pearson <markpearson@lenovo.com>
Mon, 2 May 2022 19:12:00 +0000 (15:12 -0400)
committerHans de Goede <hdegoede@redhat.com>
Fri, 6 May 2022 11:05:57 +0000 (13:05 +0200)
commitdacdd10a9f980bcf0f68534f439e7c929dd62da9
tree1acb99e69068ac23f44dd74c48d49c62e3d22675
parent9db846d4cbfebfe2f6d48ae73dfc923bbabda813
platform/x86: thinkpad_acpi: Correct dual fan probe

There was an issue with the dual fan probe whereby the probe was
failing as it assuming that second_fan support was not available.

Corrected the logic so the probe works correctly. Cleaned up so
quirks only used if 2nd fan not detected.

Tested on X1 Carbon 10 (2 fans), X1 Carbon 9 (2 fans) and T490 (1 fan)

Signed-off-by: Mark Pearson <markpearson@lenovo.com>
Link: https://lore.kernel.org/r/20220502191200.63470-1-markpearson@lenovo.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c