mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/6] platform-x86: lenovo-wmi: Add fixes and enhancement
@ 2026-02-15  6:12 Derek J. Clark
  2026-02-15  6:12 ` [PATCH v2 1/6] platform/x86: lenovo-wmi-other: Add LWMI_ATTR_ID Macro Derek J. Clark
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Derek J. Clark @ 2026-02-15  6:12 UTC (permalink / raw)
  To: Ilpo Järvinen, Hans de Goede
  Cc: Mark Pearson, Armin Wolf, Jonathan Corbet, Rong Zhang,
	Kurt Borja, Derek J . Clark, platform-driver-x86, linux-kernel

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 bugs 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 consolidates name constants in preparation for patch 6.
Patch 6 adds battery charge-type limiting when supported only by WMI.

After applying Rong's series from
https://lore.kernel.org/platform-driver-x86/20260210191938.137234-1-i@rong.moe/
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@gmail.com>
---
v2:
 - Fix gpu_mode misisng from attributes list.
 - Fix prototypes for power suppy patch.
 - Reorganize CPU and GPU attributes alphabetically.
 - Break out the patch consolidating the driver name cost.
 - Move some of the refactoring of attribute_id back to into patch 1
   where it belongs.
 - Fix some additional typos in function prototypes.
v1: https://lore.kernel.org/platform-driver-x86/20260213081243.794288-1-derekjohn.clark@gmail.com/

Derek J. Clark (6):
  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: Consolidate name into single const
  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       | 606 ++++++++++++++++--
 4 files changed, 592 insertions(+), 49 deletions(-)


base-commit: 5a5203a45b063a594e89a2aeaf9e4923893a5b4c
-- 
2.52.0


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2026-02-18  0:27 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-15  6:12 [PATCH v2 0/6] platform-x86: lenovo-wmi: Add fixes and enhancement Derek J. Clark
2026-02-15  6:12 ` [PATCH v2 1/6] platform/x86: lenovo-wmi-other: Add LWMI_ATTR_ID Macro Derek J. Clark
2026-02-15  6:12 ` [PATCH v2 2/6] platform/x86: lenovo-wmi-other: Limit adding attributes to supported devices Derek J. Clark
2026-02-17 23:54   ` Mark Pearson
2026-02-18  0:20     ` Derek J. Clark
2026-02-18  0:26       ` Mark Pearson
2026-02-15  6:12 ` [PATCH v2 3/6] platform/x86: lenovo-wmi-other: Add missing CPU tunable attributes Derek J. Clark
2026-02-15  6:12 ` [PATCH v2 4/6] platform/x86: lenovo-wmi-other: Add GPU " Derek J. Clark
2026-02-15  6:12 ` [PATCH v2 5/6] platform-x86: lenovo-wmi-other: Consolidate name into single const Derek J. Clark
2026-02-15  6:56   ` Kurt Borja
2026-02-15  7:22     ` Derek J. Clark
2026-02-15  6:12 ` [PATCH v2 6/6] platform/x86: lenovo-wmi-other: Add WMI battery charge limiting Derek J. Clark
2026-02-15 15:20   ` kernel test robot
2026-02-15 19:47   ` kernel test robot
2026-02-17 23:49 ` [PATCH v2 0/6] platform-x86: lenovo-wmi: Add fixes and enhancement Mark Pearson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox