[PATCH v2 0/4] platform/x86: wmi: Prepare for future changes

From: Armin Wolf

Date: Tue Nov 11 2025 - 08:11:40 EST


After over a year of reverse engineering, i am finally ready to
introduce support for WMI-ACPI marshaling inside the WMI driver core.
Since the resulting patch series is quite large, i am planning to
submit the necessary patches as three separate patch series.

This is supposed to be the first of the three patch series. Its main
purpose is to prepare the WMI driver core for the upcoming changes.
The first patch fixes an issue inside the nls utf16 to utf8 conversion
code, while the next two patches fix some minor issues inside the WMI
driver core itself. The last patch finally moves the code of the WMI
driver core into a separate repository to allow for future additions
without cluttering the main directory.

Changes since v1:
- move WMI driver core to drivers/platoform/wmi to prepare for future
AArch64 support

Armin Wolf (4):
fs/nls: Fix utf16 to utf8 conversion
platform/x86: wmi: Use correct type when populating ACPI objects
platform/x86: wmi: Remove extern keyword from prototypes
platform/x86: wmi: Move WMI core code into a separate directory

Documentation/driver-api/wmi.rst | 2 +-
MAINTAINERS | 2 +-
drivers/platform/Kconfig | 2 ++
drivers/platform/Makefile | 1 +
drivers/platform/wmi/Kconfig | 34 ++++++++++++++++++++++
drivers/platform/wmi/Makefile | 8 +++++
drivers/platform/{x86/wmi.c => wmi/core.c} | 34 +++++++++++++---------
drivers/platform/x86/Kconfig | 30 -------------------
drivers/platform/x86/Makefile | 1 -
fs/nls/nls_base.c | 16 +++++++---
include/linux/wmi.h | 15 ++++------
11 files changed, 85 insertions(+), 60 deletions(-)
create mode 100644 drivers/platform/wmi/Kconfig
create mode 100644 drivers/platform/wmi/Makefile
rename drivers/platform/{x86/wmi.c => wmi/core.c} (98%)

--
2.39.5