Skip to content
Permalink
Browse files
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 fexible. The driver now relies on ACPI mutex to lock access
to the EC, in the same way as the WMI DSDT code does.

Signed-off-by: Eugene Shalygin <eugene.shalygin@gmail.com>
  • Loading branch information
zeule authored and intel-lab-lkp committed Dec 16, 2021
1 parent df159e2 commit 27e7f47121cb02208740ed895a4cf4c7ab5bee63
Show file tree
Hide file tree
Showing 3 changed files with 766 additions and 0 deletions.
@@ -2253,6 +2253,18 @@ config SENSORS_ASUS_WMI_EC
This driver can also be built as a module. If so, the module
will be called asus_wmi_sensors_ec.

config SENSORS_ASUS_EC
tristate "ASUS EC Sensors"
depends on ACPI
help
If you say yes here you get support for the ACPI embedded controller
hardware monitoring interface found in ASUS motherboards. The driver
currently supports B550/X570 boards, although other ASUS boards might
provide this monitoring interface as well.

This driver can also be built as a module. If so, the module
will be called asus_ec_sensors.

endif # ACPI

endif # HWMON
@@ -9,6 +9,7 @@ obj-$(CONFIG_HWMON_VID) += hwmon-vid.o
# APCI drivers
obj-$(CONFIG_SENSORS_ACPI_POWER) += acpi_power_meter.o
obj-$(CONFIG_SENSORS_ATK0110) += asus_atk0110.o
obj-$(CONFIG_SENSORS_ASUS_EC) += asus-ec-sensors.o
obj-$(CONFIG_SENSORS_ASUS_WMI) += asus_wmi_sensors.o
obj-$(CONFIG_SENSORS_ASUS_WMI_EC) += asus_wmi_ec_sensors.o

0 comments on commit 27e7f47

Please sign in to comment.