]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86: thinkpad_acpi: Fix invalid fan speed on ThinkPad X120e
authorSybil Isabel Dorsett <sybdorsett@proton.me>
Mon, 3 Feb 2025 16:33:15 +0000 (16:33 +0000)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 10 Feb 2025 14:56:26 +0000 (16:56 +0200)
commit1046cac109225eda0973b898e053aeb3d6c10e1d
tree41f231cdfdac61c966d61429e116f953e8276608
parenta787ab73e2e43c0a3df10bc8d9b9b7a679129d49
platform/x86: thinkpad_acpi: Fix invalid fan speed on ThinkPad X120e

On ThinkPad X120e, fan speed is reported in ticks per revolution
rather than RPM.

Recalculate the fan speed value reported for ThinkPad X120e
to RPM based on a 22.5 kHz clock.

Based on the information on
https://www.thinkwiki.org/wiki/How_to_control_fan_speed,
the same problem is highly likely to be relevant to at least Edge11,
but Edge11 is not addressed in this patch.

Signed-off-by: Sybil Isabel Dorsett <sybdorsett@proton.me>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20250203163255.5525-1-sybdorsett@proton.me
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/thinkpad_acpi.c