]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitaa2fef6f40e6ccc22e932b36898f260f0e5a021a
tree1acb99e69068ac23f44dd74c48d49c62e3d22675
parent455cd867b85b53fd3602345f9b8a8facc551adc9
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