From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: Armin Wolf <W_Armin@gmx.de>
Cc: Hans de Goede <hansg@kernel.org>,
platform-driver-x86@vger.kernel.org,
LKML <linux-kernel@vger.kernel.org>,
linux@weissschuh.net, "Rafael J. Wysocki" <rafael@kernel.org>,
lenb@kernel.org, linux-acpi@vger.kernel.org
Subject: Re: [PATCH 3/3] platform/x86: wmi-bmof: Move to generic WMI code
Date: Tue, 21 Jul 2026 18:35:55 +0300 (EEST) [thread overview]
Message-ID: <7a059319-e1a9-e2c6-c750-7ee0c3ab3861@linux.intel.com> (raw)
In-Reply-To: <20260716234538.1303811-4-W_Armin@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 4138 bytes --]
On Fri, 17 Jul 2026, Armin Wolf wrote:
> Some Windows-on-Arm notebooks contain embedded Binary MOF data,
> accessible using the WMI-ACPI interface. Move the associated driver
> to the generic WMI code to make it possible to build it on arm64.
> Also rework the Kconfig help text a bit.
>
> Link: https://lists.linaro.org/archives/list/aarch64-laptops@lists.linaro.org/thread/U2IZENSIOOHZHGXVN7GM5HX5O3FD5KCF/
> Signed-off-by: Armin Wolf <W_Armin@gmx.de>
> ---
> MAINTAINERS | 2 +-
> drivers/platform/wmi/Kconfig | 12 ++++++++++++
> drivers/platform/wmi/Makefile | 4 ++++
> drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} | 0
> drivers/platform/x86/Kconfig | 12 ------------
> drivers/platform/x86/Makefile | 3 ---
> 6 files changed, 17 insertions(+), 16 deletions(-)
> rename drivers/platform/{x86/wmi-bmof.c => wmi/bmof.c} (100%)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 3820b286f09f..bbae729a6012 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -29106,7 +29106,7 @@ L: platform-driver-x86@vger.kernel.org
> S: Maintained
> F: Documentation/ABI/stable/sysfs-platform-wmi-bmof
> F: Documentation/wmi/devices/wmi-bmof.rst
> -F: drivers/platform/x86/wmi-bmof.c
> +F: drivers/platform/wmi/bmof.c
>
> WOLFSON MICROELECTRONICS DRIVERS
> L: patches@opensource.cirrus.com
> diff --git a/drivers/platform/wmi/Kconfig b/drivers/platform/wmi/Kconfig
> index 36934b5f0194..11c221a58e04 100644
> --- a/drivers/platform/wmi/Kconfig
> +++ b/drivers/platform/wmi/Kconfig
> @@ -34,4 +34,16 @@ config ACPI_WMI_LEGACY_DEVICE_NAMES
>
> source "drivers/platform/wmi/tests/Kconfig"
>
> +config WMI_BMOF
> + tristate "WMI embedded Binary MOF driver"
> + default ACPI_WMI
> + help
> + Say Y here if you want to be able to read the firmware-embedded
> + WMI Binary MOF (Managed Object Format) data. Using this requires
> + userspace tools, see Documentation/wmi/devices/wmi-bmof.rst for
> + details.
> +
> + To compile this driver as a module, choose M here: the module will
> + be called wmi-bmof.
> +
> endif # ACPI_WMI
> diff --git a/drivers/platform/wmi/Makefile b/drivers/platform/wmi/Makefile
> index 2feff94a5594..ee2f27ea20d1 100644
> --- a/drivers/platform/wmi/Makefile
> +++ b/drivers/platform/wmi/Makefile
> @@ -9,3 +9,7 @@ obj-$(CONFIG_ACPI_WMI) += wmi.o
>
> # Unit tests
> obj-y += tests/
> +
> +# Binary MOF driver
> +wmi-bmof-y := bmof.o
> +obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o
> diff --git a/drivers/platform/x86/wmi-bmof.c b/drivers/platform/wmi/bmof.c
> similarity index 100%
> rename from drivers/platform/x86/wmi-bmof.c
> rename to drivers/platform/wmi/bmof.c
> diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
> index 957034f39e4e..889979034391 100644
> --- a/drivers/platform/x86/Kconfig
> +++ b/drivers/platform/x86/Kconfig
> @@ -16,18 +16,6 @@ menuconfig X86_PLATFORM_DEVICES
>
> if X86_PLATFORM_DEVICES
>
> -config WMI_BMOF
> - tristate "WMI embedded Binary MOF driver"
> - depends on ACPI_WMI
> - default ACPI_WMI
> - help
> - Say Y here if you want to be able to read a firmware-embedded
> - WMI Binary MOF (Managed Object Format) data. Using this requires
> - userspace tools and may be rather tedious.
> -
> - To compile this driver as a module, choose M here: the module will
> - be called wmi-bmof.
> -
> config HUAWEI_WMI
> tristate "Huawei WMI laptop extras driver"
> depends on ACPI_BATTERY
> diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
> index 872ac3842391..94a5fe4075cb 100644
> --- a/drivers/platform/x86/Makefile
> +++ b/drivers/platform/x86/Makefile
> @@ -4,9 +4,6 @@
> # x86 Platform-Specific Drivers
> #
>
> -# Windows Management Interface
> -obj-$(CONFIG_WMI_BMOF) += wmi-bmof.o
> -
> # WMI drivers
> obj-$(CONFIG_HUAWEI_WMI) += huawei-wmi.o
> obj-$(CONFIG_MXM_WMI) += mxm-wmi.o
>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
--
i.
prev parent reply other threads:[~2026-07-21 15:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-16 23:45 [PATCH 0/3] platform/wmi: Add aarch64 support Armin Wolf
2026-07-16 23:45 ` [PATCH 1/3] platform/wmi: Remove dependency on CONFIG_X86 Armin Wolf
2026-07-16 23:45 ` [PATCH 2/3] ACPI: video: Remove CONFIG_X86 handling from nvidia_wmi_ec_supported() Armin Wolf
2026-07-17 9:14 ` Rafael J. Wysocki (Intel)
2026-07-17 19:58 ` Armin Wolf
2026-07-21 15:33 ` Ilpo Järvinen
2026-07-16 23:45 ` [PATCH 3/3] platform/x86: wmi-bmof: Move to generic WMI code Armin Wolf
2026-07-21 15:35 ` Ilpo Järvinen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a059319-e1a9-e2c6-c750-7ee0c3ab3861@linux.intel.com \
--to=ilpo.jarvinen@linux.intel.com \
--cc=W_Armin@gmx.de \
--cc=hansg@kernel.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@weissschuh.net \
--cc=platform-driver-x86@vger.kernel.org \
--cc=rafael@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox