Skip to content

platform/x86: Add Lenovo WMI Gaming Series Drivers

Derek J. Clark linux-doc lkml platform-driver-x86 11 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v13 Latest6 patches 1 replyIn review
  2. v126 patches 3 repliesSuperseded
  3. v116 patches 6 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v106 patches3 repliesSuperseded
v96 patches1 replySuperseded
v86 patches10 repliesSuperseded
v76 patches7 repliesSuperseded
v66 patches16 repliesSuperseded
v56 patches15 repliesSuperseded
v4 posting 2/26 patches42 repliesSuperseded
v4 posting 1/24 patches0 repliesSuperseded

Changes in v13 from the cover letter

- Move drivers to new lenovo folder

Patches in v13 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6platform/x86: Add lenovo-wmi-* driver DocumentationDocumentation/wmi/devices/lenovo-wmi-gamezone.rst Documentation/wmi/devices/lenovo-wmi-other.rst MAINTAINERS+314 -00 replies
2/6platform/x86: Add lenovo-wmi-helpersdrivers/platform/x86/lenovo/Kconfig drivers/platform/x86/lenovo/Makefile drivers/platform/x86/lenovo/wmi-helpers.c +1 more+99 -00 replies
3/6platform/x86: Add Lenovo WMI Events Driverdrivers/platform/x86/lenovo/Kconfig drivers/platform/x86/lenovo/Makefile drivers/platform/x86/lenovo/wmi-events.c +1 more+221 -00 replies
4/6platform/x86: Add Lenovo Capability Data 01 WMI Driverdrivers/platform/x86/lenovo/Kconfig drivers/platform/x86/lenovo/Makefile drivers/platform/x86/lenovo/wmi-capdata01.c +1 more+332 -00 replies
5/6platform/x86: Add Lenovo Gamezone WMI Driverdrivers/platform/x86/lenovo/Kconfig drivers/platform/x86/lenovo/Makefile drivers/platform/x86/lenovo/wmi-gamezone.c +1 more+442 -00 replies
6/6platform/x86: Add Lenovo Other Mode WMI Driverdrivers/platform/x86/lenovo/Kconfig drivers/platform/x86/lenovo/Makefile drivers/platform/x86/lenovo/wmi-other.c +1 more+697 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArmin WolfAlok TiwariMario Limonciello
SeriesR-b
1/6R-b R-b R-b
2/6R-b R-b R-b
3/6R-b R-b R-b
4/6R-b R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v13 thread

Cover letter [PATCH v13 0/6] platform/x86: Add Lenovo WMI Gaming Series Drivers

Adds support for the Lenovo "Gaming Series" of laptop hardware that use WMI interfaces that control various power settings. There are multiple WMI interfaces that work in concert to provide getting and setting values as well as validation of input. Currently only the "Gamezone", "Other Mode", and "LENOVO_CAPABILITY_DATA_01" interfaces are implemented, but I attempted to structure the driver so that adding the "Custom Mode", "Lighting", and other data block interfaces would be trivial in later patches.

This driver attempts to standardize the exposed sysfs by mirroring the asus-armoury driver currently under review. As such, a lot of inspiration has been drawn from that driver.
https://lore.kernel.org/platform-driver-x86/[email protected]/#t

The drivers have been tested by me on the Lenovo Legion Go and Legion Go S.

---
v13:
- Move drivers to new lenovo folder
v12:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v11:
https://lore.kernel.org/platform-driver-x86/[email protected]/#t
v10:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v9:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v8:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v7:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v6:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v5:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v4:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v3:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v2:
https://lore.kernel.org/platform-driver-x86/[email protected]/
v1:
https://lore.kernel.org/platform-driver-x86/[email protected]/

*** BLURB HERE ***

Derek J. Clark (6):
platform/x86: Add lenovo-wmi-* driver Documentation platform/x86: Add lenovo-wmi-helpers platform/x86: Add Lenovo WMI Events Driver platform/x86: Add Lenovo Capability Data 01 WMI Driver platform/x86: Add Lenovo Gamezone WMI Driver platform/x86: Add Lenovo Other Mode WMI Driver

 .../wmi/devices/lenovo-wmi-gamezone.rst       | 203 ++++++
 .../wmi/devices/lenovo-wmi-other.rst          | 108 +++
 MAINTAINERS                                   |   3 +
 drivers/platform/x86/lenovo/Kconfig           |  41 ++
 drivers/platform/x86/lenovo/Makefile          |   5 +
 drivers/platform/x86/lenovo/wmi-capdata01.c   | 302 ++++++++
 drivers/platform/x86/lenovo/wmi-capdata01.h   |  25 +
 drivers/platform/x86/lenovo/wmi-events.c      | 196 ++++++
 drivers/platform/x86/lenovo/wmi-events.h      |  20 +
 drivers/platform/x86/lenovo/wmi-gamezone.c    | 407 +++++++++++
 drivers/platform/x86/lenovo/wmi-gamezone.h    |  20 +
 drivers/platform/x86/lenovo/wmi-helpers.c     |  74 ++
 drivers/platform/x86/lenovo/wmi-helpers.h     |  20 +
 drivers/platform/x86/lenovo/wmi-other.c       | 665 ++++++++++++++++++
 drivers/platform/x86/lenovo/wmi-other.h       |  16 +
 15 files changed, 2105 insertions(+)
 create mode 100644 Documentation/wmi/devices/lenovo-wmi-gamezone.rst
 create mode 100644 Documentation/wmi/devices/lenovo-wmi-other.rst
 create mode 100644 drivers/platform/x86/lenovo/wmi-capdata01.c
 create mode 100644 drivers/platform/x86/lenovo/wmi-capdata01.h
 create mode 100644 drivers/platform/x86/lenovo/wmi-events.c
 create mode 100644 drivers/platform/x86/lenovo/wmi-events.h
 create mode 100644 drivers/platform/x86/lenovo/wmi-gamezone.c
 create mode 100644 drivers/platform/x86/lenovo/wmi-gamezone.h
 create mode 100644 drivers/platform/x86/lenovo/wmi-helpers.c
 create mode 100644 drivers/platform/x86/lenovo/wmi-helpers.h
 create mode 100644 drivers/platform/x86/lenovo/wmi-other.c
 create mode 100644 drivers/platform/x86/lenovo/wmi-other.h
Signature · 1 line
2.50.0