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>
Sat, 5 Feb 2022 18:01:34 +0000 (10:01 -0800)
commit91f4e586ec165bae77fe7d9b0dcd2840e4f2b427
tree7d17a45bf6b45f091effeac813e804c2aeff0608
parent9870b763256f10b38d6ccdef8ec1d50b8a7b2a00
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]