]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (asus-ec-sensors) add driver for ASUS EC
authorEugene Shalygin <eugene.shalygin@gmail.com>
Mon, 24 Jan 2022 01:56:43 +0000 (02:56 +0100)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 28 Feb 2022 01:03:17 +0000 (17:03 -0800)
commit0d19cd56ce3aa60cdddc07c88e641344620a098d
tree6fa64f486ef3052c2420af7f03b72d223dc1375b
parent7edea8b9b1e98db31358031aa271e0ac1cb2a67f
hwmon: (asus-ec-sensors) add driver for ASUS EC

This driver provides the same data as the asus_wmi_ec_sensors driver
(and gets it from the same source) but does not use WMI, polling
the ACPI EC directly.

That provides two enhancements: sensor reading became quicker (on some
systems or kernel configuration it took almost a full second to read
all the sensors, that transfers less than 15 bytes of data), the driver
became more flexible. The driver now relies on ACPI mutex to lock access
to the EC in the same way as the WMI code does.

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
Link: https://lore.kernel.org/r/20220124015658.687309-2-eugene.shalygin@gmail.com
Tested-by: Oleksandr Natalenko <oleksandr@natalenko.name>
Tested-by: Denis Pauk <pauk.denis@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
MAINTAINERS
drivers/hwmon/Kconfig
drivers/hwmon/Makefile
drivers/hwmon/asus-ec-sensors.c [new file with mode: 0644]