]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: acer-wmi: Implement proper hwmon support
authorArmin Wolf <W_Armin@gmx.de>
Tue, 10 Dec 2024 00:16:56 +0000 (01:16 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 10 Dec 2024 14:40:32 +0000 (16:40 +0200)
commit3b6f9c6505a34450a4dd5d9bbbe5cfec4718adb2
treedc71e4195dc465f86ca499a73e96f522c52500ed
parenta11d8b37942d3c12a8a5f8ae30cbdeb069e5d819
platform/x86: acer-wmi: Implement proper hwmon support

After looking at the ACPI AML code, it seems that the command 0x0000
used with ACER_WMID_GET_GAMING_SYS_INFO_METHODID returns a bitmap of
all supported sensor indices available through the 0x0001 command.

Those sensor indices seem to include both temperature and fan speed
sensors, with only the fan speed sensors being currently supported.

Use the output of this new command to implement reliable sensor
detection. This fixes detection of fans which do not spin during
probe, as fans are currently being ignored if their speed is 0.

Also add support for the new temperature sensor ids.

Tested-by: Rayan Margham <rayanmargham4@gmail.com>
Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Link: https://lore.kernel.org/r/20241210001657.3362-5-W_Armin@gmx.de
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/acer-wmi.c