]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: thinkpad_acpi: Fix for ThinkPad's with ECFW showing incorrect fan speed
authorVishnu Sankar <vishnuocv@gmail.com>
Tue, 5 Nov 2024 23:55:05 +0000 (08:55 +0900)
committerHans de Goede <hdegoede@redhat.com>
Wed, 6 Nov 2024 11:48:42 +0000 (12:48 +0100)
commit1be765b292577c752e0b87bf8c0e92aff6699d8e
tree8a32dc23d916caeaf71192f7743d99ac56782e77
parent36e66be874a7ea9d28fb9757629899a8449b8748
platform/x86: thinkpad_acpi: Fix for ThinkPad's with ECFW showing incorrect fan speed

Fix for Thinkpad's with ECFW showing incorrect fan speed. Some models use
decimal instead of hexadecimal for the speed stored in the EC registers.
For example the rpm register will have 0x4200 instead of 0x1068, here
the actual RPM is "4200" in decimal.

Add a quirk to handle this.

Signed-off-by: Vishnu Sankar <vishnuocv@gmail.com>
Suggested-by: Mark Pearson <mpearson-lenovo@squebb.ca>
Link: https://lore.kernel.org/r/20241105235505.8493-1-vishnuocv@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/thinkpad_acpi.c