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

Armin Wolf posted 4 patches 1 month, 1 week ago
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%)
[PATCH v2 0/4] platform/x86: wmi: Prepare for future changes
Posted by Armin Wolf 1 month, 1 week ago
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
Re: [PATCH v2 0/4] platform/x86: wmi: Prepare for future changes
Posted by Ilpo Järvinen 1 month ago
On Tue, 11 Nov 2025 14:11:21 +0100, Armin Wolf wrote:

> 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.
> 
> [...]


Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

The list of commits applied:
[1/4] fs/nls: Fix utf16 to utf8 conversion
      commit: 25524b6190295577e4918c689644451365e6466d
[2/4] platform/x86: wmi: Use correct type when populating ACPI objects
      commit: c209195a2a4ad920ff481b56628ca942d62e01b1
[3/4] platform/x86: wmi: Remove extern keyword from prototypes
      commit: 32e3fee88a4ac183541b478f5bc94084ea76436c
[4/4] platform/x86: wmi: Move WMI core code into a separate directory
      commit: e2c1b56f3dfa014128e775e898774c0356e3ff05

--
 i.