From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796382376; b=g+jSeEs6o72g7jnlVN78N4hXAD0xQUdOUKDrAsub0T1bMxNlOu917jWXIk82fMLmwqdc KSy9+DCslhajRJYHivwNVDMo3gHXp/LvULQctJebn77KbyM/cX5rw7ypaqvCkf3t/qeS0 NJ040Ux4Ji6Gc/vuxXjBFSrdsUX+WAYRGlrDnwR/Hzze3LUaw8KvJQc2Ch9EZ0vAjHRfj FsHS1fH9r4EUgFldi9o0XO5WLqG6UL6k9weA0n7FIamSISQnJn5YwJK8sl4fYoBGjp6z3 lHIusZVABTC/xa1ncG0XbPMWIKZiiipYdCDRgtp4DLbkp6ExFr8GApeDXfapsx6Qy6Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796382376; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Content-Type:Content-Transfer-Encoding:From:Mime-Version:Subject:Date: Message-Id:References:Cc:In-Reply-To:To:X-Mailer; bh=pWTE/Ghk9aIEt8LwcaoTaPO7TZrUa1XKnq5BrNlbxO4=; b=SSgh3ssP8yiX7yMijBkzewMSP0Od32wB90KHNZnnE66xzSOyUxZdzbav9kmYgoPZfKar rYZUcDPN8WKf/SXQy12yM1vnXDAFZ8+CKJ2qdjzj6j5QyPratnQMUcFwKSRIEIv0BcfnS 2wV7k6YAauR2rthCEtiItNY2uYyrYHnIne1AcPEJycp7N9/YOhhaxVyG781NRkrgyz+Ai TpFfPymqOUqwIyYv5evoz3c/xLtTd09gASwXoOm+DAqOTxvS92q6mtQcDZWUq8v71WdNT 41h84huKLKuLyZ6ettgBDYS05EAdfnhPlD8JFGn1B7Q+xH2khCFEfH+J8X5HT46EqxA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TM0uO3j2; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 300E5606A330 for ; Fri, 4 Dec 2026 11:06:16 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 300E5606A330 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=TM0uO3j2 Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4a1fbd52ab6so5421955e9.0 for ; Fri, 04 Dec 2026 03:06:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796382375; x=1796987175; darn=vger.kernel.org; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:content-type:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pWTE/Ghk9aIEt8LwcaoTaPO7TZrUa1XKnq5BrNlbxO4=; b=TM0uO3j2o9RAtnmv92hbzQZuS/RiHWxNwZqQgdRlkgyiq7gVl8zvf9xiEEDiCIgvDI +bBjO6LM4gsWe783IEIOVaVirHx4eoAwDpWKgGSerKyrymg/cIeE5Xynaebxz31+Ricc KbPOWPKa7YwS+oUPh4sTIRxpBIRQnw/e/TtD3MMo/ZvkgYbPXJhvFH+04vKpBSeIVgLh nkBfEOlgX3R2ALKkp6SUrjajgPeuzxG0zfaB9VBVz++F+26JM4ODyi2rsywoUc4Yp2MO OcuMlyenrbcR7FTnZEpyRRzpmYaBoUdusKyx/D/Jn7L9/pG9A8eVSGozzwaTklfDYw5b 86rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796382375; x=1796987175; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:content-type:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pWTE/Ghk9aIEt8LwcaoTaPO7TZrUa1XKnq5BrNlbxO4=; b=XWdN0SzdOWSHk9BmymAa8W3B9VBzPhRDT+KVwl/sewP9ZvSfMnaMozVIVy6PNA0y5O EDn1DqZNerfVEO6YahcPaxJV+9g6v7Lqq5NnV55g+VhlHTHNTRbUHXIJCww9f13zV7VU PQQfHncBwRy1iotsvXS1jvtAGC5FgmETBqbMVPbK+GkOJTs0PsHMu7Pm7NZU8B0WFRKa cdsJ+CKV+ilORbTmEh9MQOOZWXCdkzV+8Hhk7Lf3d8qJB8aB7R6/zgcGrdXrcHj8lGcJ 72kD2/9H8muNkDG9QlpTl2Lv/pTYmixZIt4GfnX+PwmFmdF2rTPNok5UZfYxbNRb91Yz S74A== X-Forwarded-Encrypted: i=1; AL+hErFDmqAaAgfsdYfdhc/zQ4gYpx/sQMMdK/tsLxo01qBZTZZL4wx+ALQnLlSa/z55+Z4O8IhOPthxtocnqJo=@vger.kernel.org X-Gm-Message-State: APuU4Z8b6tq6pMcZtGzOEul+LjwrPx4mGrguXHKRD1+AJeuEDtZZMol3 85yHIKSZM52lbMEXU+WshkyL3Zve6OIqvx5qouizIrZCLxpFvo9eydlP X-Gm-Gg: AZFdTZcDOWogaRTkh646fJAPfGVLet15GogB9Bcn2ucc0NGj1DGnwd4GmgdbBjK5BD4 bcISjX0Ez/Mlb2OnQh/heEjqiTnfFL+TvFt7tJRz3uiOYI/X9mR3w7/y2pT8YUd218Q3UTVqM6q 1hcnLjZO6f3RYL17+wYGcOfSKqbJUsRRY5z0/K3utWXf00ZBb9TPGpkq05bkJwtqZsd63X6MkAj J1ZKe1Jul9dw8DD540JSgefknwC0b7VAXR6vacdcuxg1SFWsewT4H214nIp1OsC5C0h2LvhniUO hI+wdLUA/aCNOnNK+4T678jLmBz88639NqaibPiXqp3LgVh8f0hITzlaowbdnqmEAmGFLjLoTlO QL2kAsRb4O/h00A3hCC12JeEdIq15kmxjs3tRzdKWa6oFV+1WMSiAYTm/1BkfUL60dgWSW40N52 3kKiW8p/eU6NrK9cZRlFIHkcV4PEkCigpUPIdwenSX13n1mPDgOSwi/DJW9pIEMaPZF+wAj0jzZ ADynhUlNuZZrwBiTUdB4fsDM7x+Xo0hrzggVwRpsFkR0F6dLgp85MeOYhodz1rHz6vqJXrEGUHO W4wd4QtSw22oSLqdEzVe3UBdxzu53O05VpXsZ/MASDJ/hBLjAMVFmWLE4xd4FRXGAyHob/g1BD2 9mHqlxjRo8EO0 X-Received: by 2002:a05:600c:3e17:b0:4bb:679a:86ee with SMTP id 5b1f17b1804b1-4bbeb8ecbf2mr30529695e9.29.1796382374320; Fri, 04 Dec 2026 03:06:14 -0800 (PST) Received: from smtpclient.apple ([2a05:b100:188e:3c00:bd9c:5ace:75cb:ce8e]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d17435e113sm4847731f8f.52.2026.12.04.03.06.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 03:06:13 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: teolyub@gmail.com 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 (1.0) Subject: Re: [PATCH 1/2] platform/x86: dell: Add new dell-wmi-pega driver Date: Fri, 4 Dec 2026 11:06:03 +0000 Message-Id: References: <2a661468-ca27-4c54-8787-75f76cb0d678@gmx.de> Cc: =?utf-8?Q?Ilpo_J=C3=A4rvinen?= , Hans de Goede , platform-driver-x86@vger.kernel.org, LKML In-Reply-To: <2a661468-ca27-4c54-8787-75f76cb0d678@gmx.de> To: Armin Wolf X-Mailer: iPhone Mail (24B156) Hi Armin - apologies for the delay, I=E2=80=99ll find the time by Sunday and= let you know. Sent from my mighty iPhone 13 mini > On 3 Dec 2026, at 14:57, Armin Wolf wrote: >=20 > =EF=BB=BFAm 20.11.26 um 22:06 schrieb Armin Wolf: >>> Am 18.11.26 um 07:24 schrieb teolyub@gmail.com: >>> Hi all - please proceed with the patch and thank you all for your work! >>>=20 >>> Sent from my mighty iPhone 13 mini >> Thanks, did you check the second patch as well? This one was not included= in the >> custom module i send you, so i want to make sure that said patch does not= break >> the event handling. >> Thanks, >> Armin Wolf >=20 > Did you find time to test the second patch? >=20 > Thanks, > Armin Wolf >=20 >>>> On 17 Nov 2026, at 22:31, Armin Wolf wrote: >>>>=20 >>>> =EF=BB=BFAm 17.11.26 um 23:17 schrieb Ilpo J=C3=A4rvinen: >>>>>> On Tue, 17 Nov 2026, Armin Wolf wrote: >>>>>> A user has reported that the WMI hotkey events on Dell All-In-One >>>>>> machines need to be manually enabled on some models thru a separate >>>>>> WMI device. This WMI device seems to be present on many other models >>>>>> but has no effect on them. >>>>> Can you rephrase this to not textually depend on "user" or "user's >>>>> report", just state what the problem is, not how you became aware of i= t. >>>>>> Add a small driver for enabling support for this WMI device. This >>>>>> enables the HDMI Input key on the Dell OptiPlex 7400 All-in-One >>>>>> machine. >>>>>>=20 >>>>>> Reported-by: Teodora >>>>>> Closes: https://lore.kernel.org/platform-driver- x86/0TZENT.54P2IBFQR= ED22@gmail.com >>>>>> Tested-by: Teodora >>>>>> Signed-off-by: Armin Wolf >>>>>> --- >>>>>> Documentation/wmi/devices/dell-wmi-pega.rst | 82 ++++++++++++++++++= >>>>>> MAINTAINERS | 6 ++ >>>>>> drivers/platform/x86/dell/Kconfig | 13 +++ >>>>>> drivers/platform/x86/dell/Makefile | 1 + >>>>>> drivers/platform/x86/dell/dell-wmi-pega.c | 93 ++++++++++++++++ += ++++ >>>>>> 5 files changed, 195 insertions(+) >>>>>> create mode 100644 Documentation/wmi/devices/dell-wmi-pega.rst >>>>>> create mode 100644 drivers/platform/x86/dell/dell-wmi-pega.c >>>>>>=20 >>>>>> diff --git a/Documentation/wmi/devices/dell-wmi-pega.rst b/ Documenta= tion/wmi/devices/dell-wmi-pega.rst >>>>>> new file mode 100644 >>>>>> index 000000000000..935c8511594b >>>>>> --- /dev/null >>>>>> +++ b/Documentation/wmi/devices/dell-wmi-pega.rst >>>>>> @@ -0,0 +1,82 @@ >>>>>> +.. SPDX-License-Identifier: GPL-2.0-or-later >>>>>> + >>>>>> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>>> +Dell All-In-One Series Platform Integration (dell-wmi-pega) >>>>>> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>>>>> + >>>>>> +Introduction >>>>>> +------------ >>>>>> + >>>>>> +Many Dell All-In-One devices contain a WMI device for notifying the u= nderlying platform >>>>>> +of various OS-specific events like power up, shutdown and backlight b= rightness control. >>>>>> + >>>>>> +Not implementing support for this WMI device might prevent hotkeys e= xposed over WMI from >>>>>> +working on some models. >>>>>> + >>>>>> +WMI interface description >>>>>> +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D >>>>>> + >>>>>> +The WMI interface description can be decoded from the embedded binar= y MOF (bmof) >>>>>> +data using the `bmfdec `_ utility: >>>>>> + >>>>>> +:: >>>>>> + >>>>>> + [WMI, Dynamic, Provider("WmiProv"), Locale("MS\\0x409"), >>>>>> + Description("Class used to operate method - WMBC"), >>>>>> + guid("{2D703EE8-36AC-4F88-BDB5-7556CE6B2946}") : ToInstance] >>>>>> + class AcpiOSD_WMBC_method : WMIMethod { >>>>>> + >>>>>> + [key, read] >>>>>> + string InstanceName; >>>>>> + >>>>>> + [read] >>>>>> + boolean Active; >>>>>> + >>>>>> + [WmiMethodId(1), Implemented, read, write, >>>>>> + Description("Invoked by AP when system up.")] >>>>>> + void PegaOemNotificationStartUp([out, Description("Return Value")= ] uint32 RetVal); >>>>>> + >>>>>> + [WmiMethodId(2), Implemented, read, write, >>>>>> + Description("Invoked by AP when system is going to off state.")]= >>>>>> + void PegaOemNotificationStop([out, Description("Return Value")] u= int32 RetVal); >>>>>> + >>>>>> + [WmiMethodId(3), Implemented, read, write, >>>>>> + Description("Invoked by Application to tune up brightness.")] >>>>>> + void PegaOemNotificationBrightnessUP([out, Description("Return Va= lue")] uint32 RetVal); >>>>>> + >>>>>> + [WmiMethodId(4), Implemented, read, write, >>>>>> + Description("Invoked by Application to tune down brightness.")] >>>>>> + void PegaOemNotificationBrightnessDown([out, Description("Return V= alue")] uint32 RetVal); >>>>>> + >>>>>> + [WmiMethodId(5), Implemented, read, write, Description("Reserved.= ")] >>>>>> + void PegaOemNotificationRSVD1([out, Description("Return Value")] u= int32 RetVal); >>>>>> + >>>>>> + [WmiMethodId(6), Implemented, read, write, Description("Reserved.= ")] >>>>>> + void PegaOemNotificationRSVD2([out, Description("Return Value")] u= int32 RetVal); >>>>>> + }; >>>>>> + >>>>>> +The return value of each WMI method should be equal to the WMI metho= d ID. >>>>>> + >>>>>> +WMI method PegaOemNotificationStartUp() >>>>>> +--------------------------------------- >>>>>> + >>>>>> +Notifies the platform that the OS is operational. On some models thi= s WMI method also enables >>>>>> +reporting of hotkey events over WMI. >>>>>> + >>>>>> +WMI method PegaOemNotificationStop() >>>>>> +------------------------------------ >>>>>> + >>>>>> +Notifies the platform that the OS is shutting down. >>>>>> + >>>>>> +WMI method PegaOemNotificationBrightnessUP() >>>>>> +-------------------------------------------- >>>>>> + >>>>>> +Notifies the platform that the user wants to increase the backlight b= rightness. This WMI method >>>>>> +usually only forwards this request to the acpi-video driver, so the d= ell-wmi-pega driver does >>>>>> +not use it. >>>>> Could these paragraphs be reflowed to 80 chars as long textual lines a= re >>>>> harder to read (eye movement required). >>>> Sure, will do. >>>>=20 >>>>>> +WMI method PegaOemNotificationBrightnessDown() >>>>>> +---------------------------------------------- >>>>>> + >>>>>> +Notifies the platform that the user wants to decrease the backlight b= rightness. See >>>>>> +``PegaOemNotificationBrightnessUP()`` for details. >>>>>> diff --git a/MAINTAINERS b/MAINTAINERS >>>>>> index bd31e734669e..fb9a80f96900 100644 >>>>>> --- a/MAINTAINERS >>>>>> +++ b/MAINTAINERS >>>>>> @@ -7534,6 +7534,12 @@ M: Pali Roh=C3=A1r >>>>>> S: Maintained >>>>>> F: drivers/platform/x86/dell/dell-wmi-base.c >>>>>> +DELL WMI PEGA DRIVER >>>>>> +M: Armin Wolf >>>>>> +S: Odd Fixes >>>>>> +F: Documentation/wmi/devices/dell-wmi-pega.rst >>>>>> +F: drivers/platform/x86/dell/dell-wmi-pega.c >>>>>> + >>>>>> DELL WMI SYSMAN DRIVER >>>>>> M: Prasanth Ksr >>>>>> L: Dell.Client.Kernel@dell.com >>>>>> diff --git a/drivers/platform/x86/dell/Kconfig b/drivers/platform/ x8= 6/dell/Kconfig >>>>>> index 9f0016056d7e..289379383ccb 100644 >>>>>> --- a/drivers/platform/x86/dell/Kconfig >>>>>> +++ b/drivers/platform/x86/dell/Kconfig >>>>>> @@ -228,6 +228,7 @@ config DELL_WMI_AIO >>>>>> depends on ACPI_WMI >>>>>> depends on INPUT >>>>>> select INPUT_SPARSEKMAP >>>>>> + imply DELL_WMI_PEGA >>>>>> help >>>>>> Say Y here if you want to support WMI-based hotkeys on Dell >>>>>> All-In-One machines. >>>>>> @@ -262,6 +263,18 @@ config DELL_WMI_LED >>>>>> This adds support for the Latitude 2100 and similar >>>>>> notebooks that have an external LED. >>>>>> +config DELL_WMI_PEGA >>>>>> + tristate "Dell WMI AIO Platform Support" >>>>>> + default m >>>>>> + depends on ACPI_WMI >>>>>> + help >>>>>> + This option adds support for WMI-based platform integration on= Dell All-In-One machines. >>>>>> + This driver is necessary for enabling the delivery of hotkey e= vents to the dell-wmi-aio >>>>>> + driver on some machines. >>>>>> + >>>>>> + To compile this drivers as a module, choose M here: the module= will be called >>>>>> + dell-wmi-pega. >>>>>> + >>>>>> config DELL_WMI_SYSMAN >>>>>> tristate "Dell WMI-based Systems management driver" >>>>>> default m >>>>>> diff --git a/drivers/platform/x86/dell/Makefile b/drivers/platform/ x= 86/dell/Makefile >>>>>> index 470874c6e6e6..46c91c240a2c 100644 >>>>>> --- a/drivers/platform/x86/dell/Makefile >>>>>> +++ b/drivers/platform/x86/dell/Makefile >>>>>> @@ -27,5 +27,6 @@ obj-$(CONFIG_DELL_WMI_AIO) +=3D dell- wm= i-aio.o >>>>>> obj-$(CONFIG_DELL_WMI_DESCRIPTOR) +=3D dell-wmi-descriptor.o= >>>>>> obj-$(CONFIG_DELL_WMI_DDV) +=3D dell-wmi-ddv.o >>>>>> obj-$(CONFIG_DELL_WMI_LED) +=3D dell-wmi-led.o >>>>>> +obj-$(CONFIG_DELL_WMI_PEGA) +=3D dell-wmi-pega.o >>>>>> obj-$(CONFIG_DELL_WMI_SYSMAN) +=3D dell-wmi-sysman/ >>>>>> obj-$(CONFIG_DELL_DW5826E_RESET) +=3D dell-dw5826e-reset.o >>>>>> diff --git a/drivers/platform/x86/dell/dell-wmi-pega.c b/drivers/ pla= tform/x86/dell/dell-wmi-pega.c >>>>>> new file mode 100644 >>>>>> index 000000000000..ddb1b6cc6b1c >>>>>> --- /dev/null >>>>>> +++ b/drivers/platform/x86/dell/dell-wmi-pega.c >>>>>> @@ -0,0 +1,93 @@ >>>>>> +// SPDX-License-Identifier: GPL-2.0-or-later >>>>>> +/* >>>>>> + * WMI platform integration for Dell All-In-One series. >>>>>> + * >>>>>> + * Copyright (C) 2026 Armin Wolf >>>>>> + * >>>>>> + * Based on earlier work by Teodora . >>>>>> + */ >>>>>> + >>>>>> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt >>>>>> + >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>> What for is this? >>>>> I suspect direct device.h include isn't necessary either (and it's >>>>> anyway guaranteed to come through wmi.h). >>>> Good question, i copied it from one of the other WMI drivers. >>>>=20 >>>> I will remove both includes in the next revision. >>>>=20 >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> +#include >>>>>> + >>>>>> +#define PEGA_GUID "2D703EE8-36AC-4F88-BDB5-7556CE6B2946" >>>>>> + >>>>>> +enum dell_pega_method { >>>>>> + DELL_PEGA_NOTIFICATION_STARTUP =3D 0x01, >>>>>> + DELL_PEGA_NOTIFICATION_STOP =3D 0x02, >>>>>> + DELL_PEGA_NOTIFICATION_BRIGHTNESS_UP =3D 0x03, >>>>>> + DELL_PEGA_NOTIFICATION_BRIGHTNESS_DOWN =3D 0x04, >>>>>> + DELL_PEGA_NOTIFICATION_RESERVED_1 =3D 0x05, >>>>>> + DELL_PEGA_NOTIFICATION_RESERVED_2 =3D 0x06, >>>>>> +}; >>>>>> + >>>>>> +static int dell_wmi_pega_invoke(struct wmi_device *wdev, enum dell_p= ega_method method) >>>>>> +{ >>>>>> + struct wmi_buffer input =3D { }; >>>>>> + struct wmi_buffer output; >>>>>> + int ret; >>>>>> + >>>>>> + ret =3D wmidev_invoke_method(wdev, 0x0, method, &input, &output,= sizeof(__le32)); >>>>>> + if (ret < 0) >>>>>> + return ret; >>>>>> + >>>>>> + __le32 *result __free(kfree) =3D output.data; >>>>>> + /* The return value should always be equal to the WMI method ID *= / >>>>>> + if (le32_to_cpu(*result) !=3D method) >>>>> Include for le32_to_cpu() >>>> What would be the correct include for this? >>>>=20 >>>>>> + return -EIO; >>>>>> + >>>>>> + return 0; >>>>>> +} >>>>>> + >>>>>> +static int dell_wmi_pega_probe(struct wmi_device *wdev, const void *= context) >>>>>> +{ >>>>>> + int ret; >>>>>> + >>>>>> + ret =3D dell_wmi_pega_invoke(wdev, DELL_PEGA_NOTIFICATION_STARTU= P); >>>>>> + if (ret < 0) >>>>>> + dev_err(&wdev->dev, >>>>>> + "Failed to notify platform of startup, some hotkeys migh= t not work\n"); >>>>> braces for multiline constructs. >>>>>> + >>>>>> + return ret; >>>>>> +} >>>>>> + >>>>>> +static void dell_wmi_pega_shutdown(struct wmi_device *wdev) >>>>>> +{ >>>>>> + int ret; >>>>>> + >>>>>> + ret =3D dell_wmi_pega_invoke(wdev, DELL_PEGA_NOTIFICATION_STOP);= >>>>>> + if (ret < 0) >>>>>> + dev_warn(&wdev->dev, "Failed to notify platform of shutdown\= n"); >>>>>> +} >>>>>> + >>>>>> +static const struct wmi_device_id dell_wmi_pega_id_table[] =3D { >>>>>> + { PEGA_GUID, NULL }, >>>>>> + { } >>>>>> +}; >>>>>> +MODULE_DEVICE_TABLE(wmi, dell_wmi_pega_id_table); >>>>>> + >>>>>> +static struct wmi_driver dell_wmi_pega_driver =3D { >>>>>> + .driver =3D { >>>>>> + .name =3D "dell-wmi-pega", >>>>>> + .probe_type =3D PROBE_PREFER_ASYNCHRONOUS, >>>>>> + }, >>>>>> + .id_table =3D dell_wmi_pega_id_table, >>>>>> + .probe =3D dell_wmi_pega_probe, >>>>>> + .remove =3D dell_wmi_pega_shutdown, >>>>>> + .shutdown =3D dell_wmi_pega_shutdown, >>>>>> + .no_singleton =3D true, >>>>>> +}; >>>>>> +module_wmi_driver(dell_wmi_pega_driver); >>>>>> + >>>>>> +MODULE_AUTHOR("Armin Wolf "); >>>>>> +MODULE_DESCRIPTION("Dell All-In-One series platform integration"); >>>>>> +MODULE_LICENSE("GPL"); >>>>> Just the mandatory nitpicking :-), seems fine otherwise. >>>> Thanks, >>>>=20 >>>> i will wait with sending a v2 until Teodora has tested the second patch= . >>>>=20 >>>> Thanks, >>>> Armin Wolf