From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.112 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796211799; b=AqAwSOMz7/KqDINipSwRkntpo24pCanxm2YfzoPNSwQxSkKz8Wj5Abj5nrnsDgeS56Wt 3u+DdnZcPrGKeDJNiZhjOiaxOGFd2HbZdPhQEi1L2+cDGx4YzvUmMUDjLA51ZCa5IDHL6 jLRuCbSRPZ/wpdlK0iC2B6OVVpLz9Q/HRl1Y379N2WHjp2NWCj8+B3SYG1PvvP2WsRAeE kPJY124miDaNDn378mahksfD6r0yZMcwYeaypax0jxKDK5ZCQPvhOfz13zYYwguqWhtzA 14eGN+Wf18Eng65zoUKRmnUjae7LglVbt1nyj5ZZnhXsfX3myv7A+wtaX66A4eSJnww== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796211799; h=DMARC-Filter:DKIM-Signature:Received:Message-ID:Subject:From:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date: MIME-Version:User-Agent:X-ZohoMailClient; bh=4ECdFgvjGdko7NJK7CEcb7APf/MAMGudPgHIWco/y3g=; b=g8SEC2tEjPDyAkYDs+i/HdTP9HPMxD7318Tb3p+ULQ/dMYKJbYRFAIbOP1hvcva0zwBv jDL38Tz7jeclpHacumJCKohYPG0QT/aXYhW82yEdpQePf+7VbfJwO5OP0mrKObCv2DY5t iTu8FqxGN9Hq20Jd202D3srXviYndRulFDolCr7zIFFCHcppNgxK633vPfNrPo0nIlMO0 xvjF4Lhu/Sd322geFKsvKpw0qM1no6m0HIANu9i02fK8VXYO4God0tb6OCqFE0sY2DMkX 8Ms3antBZN971V+F8nGOTm4jgPha8IywmnAZxTZ0ujXK0Xy37BnJM/i2ES3DUCN0T1A== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=rong.moe; spf=pass smtp.mailfrom=rong.moe; dkim=pass header.d=rong.moe header.i=@rong.moe header.a=rsa-sha256 header.s=zmail2048 header.b=IE5KjeBC; arc=pass header.oldest-pass=0 smtp.remote-ip=165.173.182.112 Received: from sender5-pp-f112.zoho.com (sender5-pp-f112.zoho.com [165.173.182.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 230A4606A322; Wed, 2 Dec 2026 11:43:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 230A4606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=rong.moe Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rong.moe Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=rong.moe header.i=@rong.moe header.a=rsa-sha256 header.s=zmail2048 header.b=IE5KjeBC ARC-Seal: i=1; a=rsa-sha256; t=1796211783; cv=none; d=zohomail.com; s=zohoarc; b=dgBpHcoKTzs+8Wd7xkFExWfPWse4er9JASMYOCLoGHoBjvHbh9VXiUb5kfn7NWwbuHh0LAO/kW5NiyU6oNykR+FKm53KgMBvi9NFFMuWiMfoTGp1D8JSR9nSqVpIY0vZOBLkPA/rWnkE3zwdck0S3bYxug+Y3shdY2+OuMXWYNI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1796211783; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=4ECdFgvjGdko7NJK7CEcb7APf/MAMGudPgHIWco/y3g=; b=A+xRxv8F+Yr4hh7U29JzQiqP8e3eqSqzRYjtkRC+PvHh7t4ifIrScze3NKDDpyIGQrc9LOn/7gpb6gt2a9LNzuk7bbQ1CJkGWMrfGak2HsITyIDJBaeN+QWS1fSNRus4lL+Pn7bLu9/vWiC7im8bq5Z24RtSI9TpZZKnTXumwx8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=rong.moe; spf=pass smtp.mailfrom=i@rong.moe; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=IE5KjeBCZS4IJscfGzElbewNdpbwiafbLb5hzOZL4FD6Hf5ySHunK4ZAzuqGsRwuPIunKhdeCGxoDROyAvR5aCEyCHK4Bw2nGnC3ifWvLD8IK4DWum7v7fr3z5gvj+8vw+D9Q+qyj0VmlRfuuJgjvhTNIyyyoH9iKbP+k75PeLsku8p0Z8NKNgy0hBGrox02FKKPkYS+sLgkFeYyiSHxyvYtEAii9AQkaw4sHoJH9BmNC2euqEDy6m4+rFrIFdHRMtrl2it7r+WaLNklbDQS0bA8C7/q53TjJj8p2JEA5zlogKVIpVvfxhSUSm3s2GhuKxMOY1ZgmUE751IEr9aqMA==; c=relaxed/relaxed; s=zmail2048; d=rong.moe; v=1; bh=4ECdFgvjGdko7NJK7CEcb7APf/MAMGudPgHIWco/y3g=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zohomail.com with SMTPS id 1796211781078485.83942986350894; Wed, 2 Dec 2026 03:43:01 -0800 (PST) Message-ID: Subject: Re: [PATCH v4 1/3] platform: lenovo: move the architecture independent WMI drivers out of x86 From: Rong Zhang To: David Cemin , hansg@kernel.org, ilpo.jarvinen@linux.intel.com, W_Armin@gmx.de Cc: Ciro Pedrini , mpearson-lenovo@squebb.ca, derekjohn.clark@gmail.com, xy-jackie@139.com, marco_giunta@outlook.it, ldemarchi@nvidia.com, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20261130043245.758932-2-dcemin@nvidia.com> References: <20261121033322.974635-1-dcemin@nvidia.com> <20261130043245.758932-1-dcemin@nvidia.com> <20261130043245.758932-2-dcemin@nvidia.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Dec 2026 19:36:57 +0800 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Evolution 3.62.1-4 X-ZohoMailClient: External Hi David, Thanks for working on this. On Sun, 2026-11-29 at 20:32 -0800, David Cemin wrote: > The Lenovo WMI drivers (events, helpers, capability data, GameZone, > Other Mode, hotkey utilities and camera button) contain no x86 specific > code: they talk to firmware through the ACPI-WMI core only. They live > under drivers/platform/x86 because that is where Lenovo drivers were > collected, and X86_PLATFORM_DEVICES keeps them off every other > architecture. >=20 > Lenovo now ships ACPI based arm64 laptops whose firmware exposes the > same WMI GUIDs (the Fn key events, the mic mute LED method, GameZone and > Other Mode). Give these drivers an architecture independent home, > drivers/platform/lenovo, following the layout of drivers/platform/surface > which exists for the same reason, so they can be built wherever the WMI > core is available. ideapad-laptop, thinkpad_acpi, think-lmi, yogabook and > the Yoga Tablet drivers stay under x86: they depend on i8042, port I/O or > x86 only ACPI devices. >=20 > Pure code motion: the files, their Kconfig entries and the module naming > scheme are unchanged. MAINTAINERS entries are updated for the new paths. >=20 > Signed-off-by: David Cemin > Reviewed-by: Mark Pearson > Reviewed-by: Jackie Dong > Reviewed-by: Rong Zhang > --- > MAINTAINERS | 3 +- > drivers/platform/Kconfig | 2 + > drivers/platform/Makefile | 1 + > drivers/platform/lenovo/Kconfig | 87 +++++++++++++++++++ > drivers/platform/lenovo/Makefile | 22 +++++ > .../platform/{x86 =3D> }/lenovo/wmi-camera.c | 0 > .../platform/{x86 =3D> }/lenovo/wmi-capdata.c | 0 > .../platform/{x86 =3D> }/lenovo/wmi-capdata.h | 0 > .../platform/{x86 =3D> }/lenovo/wmi-events.c | 0 > .../platform/{x86 =3D> }/lenovo/wmi-events.h | 0 > .../platform/{x86 =3D> }/lenovo/wmi-gamezone.c | 0 > .../platform/{x86 =3D> }/lenovo/wmi-helpers.c | 0 > .../platform/{x86 =3D> }/lenovo/wmi-helpers.h | 0 > .../{x86 =3D> }/lenovo/wmi-hotkey-utilities.c | 0 > drivers/platform/{x86 =3D> }/lenovo/wmi-other.c | 0 > drivers/platform/x86/lenovo/Kconfig | 67 -------------- > drivers/platform/x86/lenovo/Makefile | 7 -- > 17 files changed, 114 insertions(+), 75 deletions(-) > create mode 100644 drivers/platform/lenovo/Kconfig > create mode 100644 drivers/platform/lenovo/Makefile > rename drivers/platform/{x86 =3D> }/lenovo/wmi-camera.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-capdata.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-capdata.h (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-events.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-events.h (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-gamezone.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-helpers.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-helpers.h (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-hotkey-utilities.c (100%) > rename drivers/platform/{x86 =3D> }/lenovo/wmi-other.c (100%) >=20 > diff --git a/MAINTAINERS b/MAINTAINERS > index 056408bc086e..3b0ad5a3debe 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -15170,13 +15170,14 @@ L:=09platform-driver-x86@vger.kernel.org > S:=09Maintained > F:=09Documentation/wmi/devices/lenovo-wmi-gamezone.rst > F:=09Documentation/wmi/devices/lenovo-wmi-other.rst > +F:=09drivers/platform/lenovo/ > F:=09drivers/platform/x86/lenovo/* > =20 > LENOVO WMI HOTKEY UTILITIES DRIVER > M:=09Jackie Dong > L:=09platform-driver-x86@vger.kernel.org > S:=09Maintained > -F:=09drivers/platform/x86/lenovo/wmi-hotkey-utilities.c > +F:=09drivers/platform/lenovo/wmi-hotkey-utilities.c > =20 > LENOVO HID drivers > M:=09Derek J. Clark > diff --git a/drivers/platform/Kconfig b/drivers/platform/Kconfig > index 312788f249c9..80b2b83b69e5 100644 > --- a/drivers/platform/Kconfig > +++ b/drivers/platform/Kconfig > @@ -15,6 +15,8 @@ source "drivers/platform/olpc/Kconfig" > =20 > source "drivers/platform/surface/Kconfig" > =20 > +source "drivers/platform/lenovo/Kconfig" > + > source "drivers/platform/x86/Kconfig" > =20 > source "drivers/platform/arm64/Kconfig" > diff --git a/drivers/platform/Makefile b/drivers/platform/Makefile > index fa322e7f8716..0144f88ff6db 100644 > --- a/drivers/platform/Makefile > +++ b/drivers/platform/Makefile > @@ -12,6 +12,7 @@ obj-$(CONFIG_GOLDFISH)=09=09+=3D goldfish/ > obj-$(CONFIG_CHROME_PLATFORMS)=09+=3D chrome/ > obj-$(CONFIG_CZNIC_PLATFORMS)=09+=3D cznic/ > obj-$(CONFIG_SURFACE_PLATFORMS)=09+=3D surface/ > +obj-$(CONFIG_LENOVO_PLATFORMS)=09+=3D lenovo/ > obj-$(CONFIG_ARM64_PLATFORM_DEVICES)=09+=3D arm64/ > obj-$(CONFIG_BCM2835_VCHIQ)=09+=3D raspberrypi/ > obj-$(CONFIG_ACPI_WMI)=09=09+=3D wmi/ > diff --git a/drivers/platform/lenovo/Kconfig b/drivers/platform/lenovo/Kc= onfig > new file mode 100644 > index 000000000000..8222322ca671 > --- /dev/null > +++ b/drivers/platform/lenovo/Kconfig > @@ -0,0 +1,87 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +# > +# Lenovo Platform-Specific Drivers > +# > + > +menuconfig LENOVO_PLATFORMS > +=09bool "Lenovo Platform-Specific Device Drivers" > +=09depends on ARM64 || X86 || COMPILE_TEST > +=09default y if ARM64 || X86 > +=09help > +=09 Say Y here to get to see options for platform-specific device drive= rs > +=09 for Lenovo devices that do not depend on the CPU architecture, such > +=09 as the ACPI-WMI based drivers used on both x86 and arm64 laptops. > +=09 This option alone does not add any kernel code. > + > +=09 If you say N, all options in this submenu will be skipped and disab= led. > + > +if LENOVO_PLATFORMS > + > +config LENOVO_WMI_HELPERS > +=09tristate > +=09depends on ACPI_WMI > + > +config LENOVO_WMI_EVENTS > +=09tristate > +=09depends on ACPI_WMI > + > +config LENOVO_WMI_CAPDATA > +=09tristate > +=09depends on ACPI_WMI > +=09depends on LENOVO_WMI_HELPERS > + > +config LENOVO_WMI_HOTKEY_UTILITIES > +=09tristate "Lenovo Hotkey Utility WMI extras driver" > +=09depends on ACPI_WMI > +=09select NEW_LEDS > +=09select LEDS_CLASS > +=09imply IDEAPAD_LAPTOP > +=09help > +=09 This driver provides WMI support for Lenovo customized hotkeys func= tion, > +=09 such as LED control for audio/mic mute event for Ideapad, YOGA, Xia= oXin, > +=09 Gaming, ThinkBook and so on. > + > +config LENOVO_WMI_CAMERA > +=09tristate "Lenovo WMI Camera Button driver" > +=09depends on ACPI_WMI > +=09depends on INPUT > +=09help > +=09 This driver provides support for Lenovo camera button. The Camera > +=09 button is a GPIO device. This driver receives ACPI notifications wh= en > +=09 the camera button is switched on/off. > + > +=09 To compile this driver as a module, choose M here: the module > +=09 will be called lenovo-wmi-camera. > + > +config LENOVO_WMI_GAMEZONE > +=09tristate "Lenovo GameZone WMI Driver" > +=09depends on ACPI_WMI > +=09depends on DMI > +=09select ACPI_PLATFORM_PROFILE > +=09select LENOVO_WMI_EVENTS > +=09select LENOVO_WMI_HELPERS > +=09help > +=09 Say Y here if you have a WMI aware Lenovo Legion device and would l= ike to use the > +=09 platform-profile firmware interface to manage power usage. > + > +=09 To compile this driver as a module, choose M here: the module will > +=09 be called lenovo-wmi-gamezone. > + > +config LENOVO_WMI_TUNING > +=09tristate "Lenovo Other Mode WMI Driver" > +=09depends on ACPI_WMI > +=09depends on ACPI_BATTERY > +=09select HWMON > +=09select FW_ATTR_CLASS > +=09select LENOVO_WMI_CAPDATA > +=09select LENOVO_WMI_EVENTS > +=09select LENOVO_WMI_HELPERS > +=09help > +=09 Say Y here if you have a WMI aware Lenovo Legion device and would l= ike to use the > +=09 firmware_attributes API to control various tunable settings typical= ly exposed by > +=09 Lenovo software in Windows. > + > +=09 To compile this driver as a module, choose M here: the module will > +=09 be called lenovo-wmi-other. > + > +endif # LENOVO_PLATFORMS > diff --git a/drivers/platform/lenovo/Makefile b/drivers/platform/lenovo/M= akefile > new file mode 100644 > index 000000000000..1cac115dd735 > --- /dev/null > +++ b/drivers/platform/lenovo/Makefile > @@ -0,0 +1,22 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# > +# Makefile for linux/drivers/platform/lenovo > +# Lenovo Platform Specific Drivers (architecture independent) > +# > + > +lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS)=09+=3D wmi-helpers.o > +lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS)=09+=3D wmi-events.o > +lenovo-target-$(CONFIG_LENOVO_WMI_CAPDATA)=09+=3D wmi-capdata.o > +lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES)=09+=3D wmi-hotkey-ut= ilities.o > +lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA)=09+=3D wmi-camera.o > +lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE)=09+=3D wmi-gamezone.o > +lenovo-target-$(CONFIG_LENOVO_WMI_TUNING)=09+=3D wmi-other.o > + > +# Add 'lenovo' prefix to each module listed in lenovo-target-* > +define LENOVO_OBJ_TARGET > +lenovo-$(1)-y :=3D $(1).o > +obj-$(2) +=3D lenovo-$(1).o > +endef > + > +$(foreach target, $(basename $(lenovo-target-y)), $(eval $(call LENOVO_O= BJ_TARGET,$(target),y))) > +$(foreach target, $(basename $(lenovo-target-m)), $(eval $(call LENOVO_O= BJ_TARGET,$(target),m))) > diff --git a/drivers/platform/x86/lenovo/wmi-camera.c b/drivers/platform/= lenovo/wmi-camera.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-camera.c > rename to drivers/platform/lenovo/wmi-camera.c > diff --git a/drivers/platform/x86/lenovo/wmi-capdata.c b/drivers/platform= /lenovo/wmi-capdata.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-capdata.c > rename to drivers/platform/lenovo/wmi-capdata.c > diff --git a/drivers/platform/x86/lenovo/wmi-capdata.h b/drivers/platform= /lenovo/wmi-capdata.h > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-capdata.h > rename to drivers/platform/lenovo/wmi-capdata.h > diff --git a/drivers/platform/x86/lenovo/wmi-events.c b/drivers/platform/= lenovo/wmi-events.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-events.c > rename to drivers/platform/lenovo/wmi-events.c > diff --git a/drivers/platform/x86/lenovo/wmi-events.h b/drivers/platform/= lenovo/wmi-events.h > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-events.h > rename to drivers/platform/lenovo/wmi-events.h > diff --git a/drivers/platform/x86/lenovo/wmi-gamezone.c b/drivers/platfor= m/lenovo/wmi-gamezone.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-gamezone.c > rename to drivers/platform/lenovo/wmi-gamezone.c > diff --git a/drivers/platform/x86/lenovo/wmi-helpers.c b/drivers/platform= /lenovo/wmi-helpers.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-helpers.c > rename to drivers/platform/lenovo/wmi-helpers.c > diff --git a/drivers/platform/x86/lenovo/wmi-helpers.h b/drivers/platform= /lenovo/wmi-helpers.h > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-helpers.h > rename to drivers/platform/lenovo/wmi-helpers.h > diff --git a/drivers/platform/x86/lenovo/wmi-hotkey-utilities.c b/drivers= /platform/lenovo/wmi-hotkey-utilities.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-hotkey-utilities.c > rename to drivers/platform/lenovo/wmi-hotkey-utilities.c > diff --git a/drivers/platform/x86/lenovo/wmi-other.c b/drivers/platform/l= enovo/wmi-other.c > similarity index 100% > rename from drivers/platform/x86/lenovo/wmi-other.c > rename to drivers/platform/lenovo/wmi-other.c > diff --git a/drivers/platform/x86/lenovo/Kconfig b/drivers/platform/x86/l= enovo/Kconfig > index f16b09bab082..4d9a25d0e3b5 100644 > --- a/drivers/platform/x86/lenovo/Kconfig > +++ b/drivers/platform/x86/lenovo/Kconfig > @@ -20,29 +20,6 @@ config IDEAPAD_LAPTOP > =09 This is a driver for Lenovo IdeaPad netbooks contains drivers for > =09 rfkill switch, hotkey, fan control and backlight control. > =20 > -config LENOVO_WMI_HOTKEY_UTILITIES > -=09tristate "Lenovo Hotkey Utility WMI extras driver" > -=09depends on ACPI_WMI > -=09select NEW_LEDS > -=09select LEDS_CLASS > -=09imply IDEAPAD_LAPTOP > -=09help > -=09 This driver provides WMI support for Lenovo customized hotkeys func= tion, > -=09 such as LED control for audio/mic mute event for Ideapad, YOGA, Xia= oXin, > -=09 Gaming, ThinkBook and so on. > - > -config LENOVO_WMI_CAMERA > -=09tristate "Lenovo WMI Camera Button driver" > -=09depends on ACPI_WMI > -=09depends on INPUT > -=09help > -=09 This driver provides support for Lenovo camera button. The Camera > -=09 button is a GPIO device. This driver receives ACPI notifications wh= en > -=09 the camera button is switched on/off. > - > -=09 To compile this driver as a module, choose M here: the module > -=09 will be called lenovo-wmi-camera. > - > config LENOVO_YB9_KBDOCK > =09tristate "Lenovo Yoga Book 9 keyboard dock detection" > =09depends on ACPI_WMI > @@ -248,47 +225,3 @@ config YT2_1380 > =20 > =09 To compile this driver as a module, choose M here: the module will > =09 be called lenovo-yogabook. > - > -config LENOVO_WMI_CAPDATA > -=09tristate > -=09depends on ACPI_WMI > -=09depends on LENOVO_WMI_HELPERS > - > -config LENOVO_WMI_EVENTS > -=09tristate > -=09depends on ACPI_WMI > - > -config LENOVO_WMI_HELPERS > -=09tristate > -=09depends on ACPI_WMI Just noticed that the movement of LENOVO_WMI_EVENTS and LENOVO_WMI_HELPERS can break Kconfig validity. Now that LENOVO_YMC selects both symbols, which are guarded by LENOVO_PLATFORMS with your series, the selections can result in invalid combinations, e.g..: LENOVO_YMC=3Dy LENOVO_PLATFORMS=3Dn LENOVO_WMI_EVENTS=3Dy LENOVO_WMI_HELPERS=3Dy I would suggest you either move LENOVO_YMC to platform/lenovo (as the driver is also an WMI one) and make the dependence on IDEAPAD_LAPTOP optional (by adding stubs to x86/lenovo/ideapad-laptop.h and adding `depends on IDEAPAD_LAPTOP if IDEAPAD_LAPTOP' to LENOVO_YMC), or add `depends on LENOVO_PLATFORMS' to LENOVO_YMC. Meanwhile, both my YMC series and Ciro's [1] have been applied, so a rebase is required. Also note that Marco wants to add more ignored keymap entries to cover more brightness events, see [2]. Since those additions will anyway conflict with your series, could you please add a PATCH 4 or expand the PATCH 3 to include these events and get rid of mid-air collisions? You can add there Co-developed-by: (if they permit) or Suggested-by:. [1]: https://msgid.link/20261127-legion-lighting-rfc-v3-1-15c55d9f15b7@gmail.com [2]: https://msgid.link/BYAPR19MB229323713AAFB68EC5D8443EFC402@BYAPR19MB2293.nam= prd19.prod.outlook.com Thanks, Rong > - > -config LENOVO_WMI_GAMEZONE > -=09tristate "Lenovo GameZone WMI Driver" > -=09depends on ACPI_WMI > -=09depends on DMI > -=09select ACPI_PLATFORM_PROFILE > -=09select LENOVO_WMI_EVENTS > -=09select LENOVO_WMI_HELPERS > -=09help > -=09 Say Y here if you have a WMI aware Lenovo Legion device and would l= ike to use the > -=09 platform-profile firmware interface to manage power usage. > - > -=09 To compile this driver as a module, choose M here: the module will > -=09 be called lenovo-wmi-gamezone. > - > -config LENOVO_WMI_TUNING > -=09tristate "Lenovo Other Mode WMI Driver" > -=09depends on ACPI_WMI > -=09depends on ACPI_BATTERY > -=09select HWMON > -=09select FW_ATTR_CLASS > -=09select LENOVO_WMI_CAPDATA > -=09select LENOVO_WMI_EVENTS > -=09select LENOVO_WMI_HELPERS > -=09help > -=09 Say Y here if you have a WMI aware Lenovo Legion device and would l= ike to use the > -=09 firmware_attributes API to control various tunable settings typical= ly exposed by > -=09 Lenovo software in Windows. > - > -=09 To compile this driver as a module, choose M here: the module will > -=09 be called lenovo-wmi-other. > diff --git a/drivers/platform/x86/lenovo/Makefile b/drivers/platform/x86/= lenovo/Makefile > index 12816d8d5e24..758c36cedee8 100644 > --- a/drivers/platform/x86/lenovo/Makefile > +++ b/drivers/platform/x86/lenovo/Makefile > @@ -7,17 +7,10 @@ obj-$(CONFIG_IDEAPAD_LAPTOP)=09+=3D ideapad-laptop.o > obj-$(CONFIG_THINKPAD_LMI)=09+=3D think-lmi.o > obj-$(CONFIG_THINKPAD_ACPI)=09+=3D thinkpad_acpi.o > =20 > -lenovo-target-$(CONFIG_LENOVO_WMI_HOTKEY_UTILITIES)=09+=3D wmi-hotkey-ut= ilities.o > lenovo-target-$(CONFIG_LENOVO_YB9_KBDOCK)=09+=3D yb9-kbdock.o > lenovo-target-$(CONFIG_LENOVO_YMC)=09+=3D ymc.o > lenovo-target-$(CONFIG_YOGABOOK)=09+=3D yogabook.o > lenovo-target-$(CONFIG_YT2_1380)=09+=3D yoga-tab2-pro-1380-fastcharger.o > -lenovo-target-$(CONFIG_LENOVO_WMI_CAMERA)=09+=3D wmi-camera.o > -lenovo-target-$(CONFIG_LENOVO_WMI_CAPDATA)=09+=3D wmi-capdata.o > -lenovo-target-$(CONFIG_LENOVO_WMI_EVENTS)=09+=3D wmi-events.o > -lenovo-target-$(CONFIG_LENOVO_WMI_HELPERS)=09+=3D wmi-helpers.o > -lenovo-target-$(CONFIG_LENOVO_WMI_GAMEZONE)=09+=3D wmi-gamezone.o > -lenovo-target-$(CONFIG_LENOVO_WMI_TUNING)=09+=3D wmi-other.o > =20 > # Add 'lenovo' prefix to each module listed in lenovo-target-* > define LENOVO_OBJ_TARGET