[PATCH 0/7] platform/x86: wmi: Rework WMI device enabling

From: Armin Wolf
Date: Mon Feb 03 2025 - 13:24:15 EST


This patch series reworks how WMI devices are enabled and disabled
to improve the compatibility with various firmware implementations.

The first three patches make sure that no WMI driver using the WMI bus
infrastructure is using the deprecated GUID-based API to access the
underlying WMI device.

The fourth patch is a unrelated cleanup patch.

The last three patches finally rework the WMI device enabling inside
the WMI core and update the documentation.

The WMI core patches have been tested on a Dell Inspiron 3505, but
the remaining patches are compile-tested only.

Armin Wolf (7):
hwmon: (hp-wmi-sensors) Use the WMI bus API when accessing sensors
platform/x86: think-lmi: Use ACPI object when extracting strings
platform/x86: think-lmi: Use WMI bus API when accessing BIOS settings
platform/x86: hp-bioscfg: Use wmi_instance_count()
platform/x86: wmi: Rework WCxx/WExx ACPI method handling
platform/x86: wmi: Call WCxx methods when setting data blocks
platform/x86: wmi: Update documentation regarding the GUID-based API

Documentation/wmi/acpi-interface.rst | 3 +
.../wmi/driver-development-guide.rst | 4 +
drivers/hwmon/hp-wmi-sensors.c | 4 +-
drivers/platform/x86/hp/hp-bioscfg/bioscfg.c | 13 +-
drivers/platform/x86/think-lmi.c | 51 ++++----
drivers/platform/x86/think-lmi.h | 2 +
drivers/platform/x86/wmi.c | 114 +++++++++---------
7 files changed, 96 insertions(+), 95 deletions(-)

--
2.39.5