OSDN Git Service

platform/x86: dell: Add new dell-wmi-ddv driver
authorArmin Wolf <W_Armin@gmx.de>
Tue, 27 Sep 2022 20:45:21 +0000 (22:45 +0200)
committerHans de Goede <hdegoede@redhat.com>
Wed, 16 Nov 2022 07:48:18 +0000 (08:48 +0100)
commita77272c16041862c5c8d450c8701139887e1bb05
tree82db04f5cd0690c652b365d157b35e5023814628
parent878a82c23469d6626b27b44ade4d8f9438de51ab
platform/x86: dell: Add new dell-wmi-ddv driver

The dell-wmi-ddv driver adds support for reading
the current temperature and ePPID of ACPI batteries
on supported Dell machines.

Since the WMI interface used by this driver does not
do any input validation and thus cannot be used for probing,
the driver depends on the ACPI battery extension machanism
to discover batteries.

The driver also supports a debugfs interface for retrieving
buffers containing fan and thermal sensor information.
Since the meaing of the content of those buffers is currently
unknown, the interface is meant for reverse-engineering and
will likely be replaced with an hwmon interface once the
meaning has been understood.

The driver was tested on a Dell Inspiron 3505.

Signed-off-by: Armin Wolf <W_Armin@gmx.de>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20220927204521.601887-3-W_Armin@gmx.de
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/debugfs-dell-wmi-ddv [new file with mode: 0644]
Documentation/ABI/testing/sysfs-platform-dell-wmi-ddv [new file with mode: 0644]
MAINTAINERS
drivers/platform/x86/dell/Kconfig
drivers/platform/x86/dell/Makefile
drivers/platform/x86/dell/dell-wmi-ddv.c [new file with mode: 0644]
drivers/platform/x86/wmi.c