Skip to content

platform/x86: uniwill: add read-only WMI EC backend

Renan Biegelmeyer lkml platform-driver-x86 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2platform/x86: uniwill: add read-only WMI EC backenddrivers/platform/x86/uniwill/uniwill-acpi.c drivers/platform/x86/uniwill/uniwill-wmi.c drivers/platform/x86/uniwill/uniwill-wmi.h+217 -90 replies
2/2platform/x86: uniwill: document the WMI EC fallbackDocumentation/wmi/devices/uniwill-laptop.rst+8 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchRenan Biegelmeyer
SeriesT-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] platform/x86: uniwill: add read-only WMI EC backend

Some Uniwill-based devices do not expose the INOU0000 ACPI device, so the in-tree driver cannot bind even though the EC is still reachable through the AcpiTest_MULong WMI interface. This is the case on the Avell A62 LIV used for testing.

Patch 1 adds a read-only regmap backend over that WMI interface, makes the WMI driver instantiate the platform device when INOU0000 is absent and the EC answers a test read, and restricts the WMI path to the hwmon sensors (CPU/GPU temperature, fan speed and PWM). All write-oriented features are skipped; the WMI backend intentionally has no write callback.

Patch 2 documents the fallback.

The series is based on platform-drivers-x86/for-next at 2268d837d and is compile-tested with W=1 and checkpatch --strict. Runtime-tested on an Avell A62 LIV (i7-10750H, BIOS N.1.02) with the same change backported to 7.3.5:
the driver exposes fan1/fan2, temp1/temp2 and pwm1/pwm2, with values matching coretemp/nvidia-smi (3157/3084 RPM, 60/56 °C, PWM 102).

Renan Biegelmeyer (2):
platform/x86: uniwill: add read-only WMI EC backend platform/x86: uniwill: document the WMI EC fallback

 Documentation/wmi/devices/uniwill-laptop.rst |   8 ++
 drivers/platform/x86/uniwill/uniwill-acpi.c  | 138 +++++++++++++++++--
 drivers/platform/x86/uniwill/uniwill-wmi.c   |  76 ++++++++++
 drivers/platform/x86/uniwill/uniwill-wmi.h   |  12 ++
 4 files changed, 225 insertions(+), 9 deletions(-)

base-commit: 2268d837dea13a78639fa3dad60472bb67478709

Signature · 1 line
2.56.1