Skip to content

Commit 3b7eeff

Browse files
Wer-Wolfjwrdegoede
authored andcommitted
platform/x86: dell-ddv: Add hwmon support
Thanks to bugreport 216655 on bugzilla triggered by the dell-smm-hwmon driver, the contents of the sensor buffers could be almost completely decoded. Add an hwmon interface for exposing the fan and thermal sensor values. Since the WMI interface can be quite slow on some machines, the sensor buffers are cached for 1 second to lessen the performance impact. The debugfs interface remains in place to aid in reverse-engineering of unknown sensor types and the thermal buffer. Tested-by: Antonín Skala <[email protected]> Tested-by: Gustavo Walbon <[email protected]> Signed-off-by: Armin Wolf <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent e721056 commit 3b7eeff

File tree

2 files changed

+493
-5
lines changed

2 files changed

+493
-5
lines changed

drivers/platform/x86/dell/Kconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,12 @@ config DELL_WMI_DESCRIPTOR
192192
config DELL_WMI_DDV
193193
tristate "Dell WMI sensors Support"
194194
default m
195-
depends on ACPI_BATTERY
196195
depends on ACPI_WMI
196+
depends on ACPI_BATTERY || HWMON
197197
help
198-
This option adds support for WMI-based sensors like
199-
battery temperature sensors found on some Dell notebooks.
200-
It also supports reading of the battery ePPID.
198+
This option adds support for WMI-based fan and thermal sensors
199+
found on some Dell notebooks. It also supports various WMI-based battery
200+
extras like reading of the battery temperature and ePPID.
201201

202202
To compile this drivers as a module, choose M here: the module will
203203
be called dell-wmi-ddv.

0 commit comments

Comments
 (0)