platform/x86: thinkpad_acpi: fix for incorrect fan reporting on some ThinkPad systems
authorVishnu Sankar <vishnuocv@gmail.com>
Thu, 14 Dec 2023 13:47:02 +0000 (22:47 +0900)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 18 Dec 2023 12:44:28 +0000 (14:44 +0200)
commit66e92e23a72761f5b53f970aeb1badc5fd92fc74
tree296f4b1868d36897c26fc983c07ae6df3d246e17
parent7bcd032370f88fd4022b6926d101403e96a86309
platform/x86: thinkpad_acpi: fix for incorrect fan reporting on some ThinkPad systems

Some ThinkPad systems ECFW use non-standard addresses for fan control
and reporting. This patch adds support for such ECFW so that it can report
the correct fan values.
Tested on Thinkpads L13 Yoga Gen 2 and X13 Yoga Gen 2.

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