[PATCH 0/5] platform-x86: lenovo-wmi: Add fixes and enhancement
From: Derek J. Clark
Date: Fri Feb 13 2026 - 03:12:58 EST
This series adds many much needed features and fixes to the lenovo-wmi
drivers.
Patch 1 adds a macro to make assigning attribute ID's for capdata
cleaner and easier.
Patch 2 addresses a bug where devices that don't support exposed
attributes would still create the attribute, and also attempts to
identify the correct capdata and set/get methods as some legacy
interfaces don't use the custom mode in the method or capdata ID.
Patch 3 adds the remaining CPU attributes that weren't previously
exposed.
Patch 4 adds the GPU attributes that weren't previously exposed.
Patch 5 adds battery charge-type limiting when supported by WMI.
After applying Rong's series from
https://lore.kernel.org/platform-driver-x86/20260210191938.137234-1-i@xxxxxxxx/
I found that there weren't any conflicts, so rather than combine
the series we can just review each separately.
Signed-off-by: Derek J. Clark <derekjohn.clark@xxxxxxxxx>
Derek J. Clark (5):
platform/x86: lenovo-wmi-other: Add LWMI_ATTR_ID Macro
platform/x86: lenovo-wmi-other: Limit adding attributes to supported
devices
platform/x86: lenovo-wmi-other: Add missing CPU tunable attributes
platform/x86: lenovo-wmi-other: Add GPU tunable attributes
platform/x86: lenovo-wmi-other: Add WMI battery charge limiting.
.../wmi/devices/lenovo-wmi-other.rst | 21 +
drivers/platform/x86/lenovo/wmi-capdata.h | 13 +-
drivers/platform/x86/lenovo/wmi-gamezone.h | 1 +
drivers/platform/x86/lenovo/wmi-other.c | 605 ++++++++++++++++--
4 files changed, 591 insertions(+), 49 deletions(-)
--
2.52.0