drivers/platform/x86/msi-wmi.c | 97 +++++++++++++++++++++++----------- 1 file changed, 65 insertions(+), 32 deletions(-)
MSI Claw devices produce WMI events through the MSI WMI hotkeys GUID for some of their buttons. When pressed, these cause spam in the kernel. The Claws use a GUID already supported by msi-wmi, but use an ACPI_TYPE_BUFFER instead of an ACPI_TYPE_INTEGER. Patch 1 reformats msi_wmi_notify() to reduce nesting by using early returns and a switch case in preparation for handling this new data type. Patch 2 adds known MSI Claw event keycodes to the keymap and support for ACPI_TYPE_BUFFER. Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com> --- v2: - Add comments explaining buffer fields & length. - Test that we have at lease u8[2] before assignment of key ID v1: https://lore.kernel.org/platform-driver-x86/20260611223920.1679438-1-derekjohn.clark@gmail.com/ Derek J. Clark (2): platform/x86: msi-wmi: Reformat msi_wmi_notify() platform/x86: msi-wmi: Add MSI Claw M-Center keys drivers/platform/x86/msi-wmi.c | 97 +++++++++++++++++++++++----------- 1 file changed, 65 insertions(+), 32 deletions(-) -- 2.54.0
On Fri, 12 Jun 2026 19:16:52 -0700, Derek J. Clark wrote:
> MSI Claw devices produce WMI events through the MSI WMI hotkeys GUID for
> some of their buttons. When pressed, these cause spam in the kernel. The
> Claws use a GUID already supported by msi-wmi, but use an
> ACPI_TYPE_BUFFER instead of an ACPI_TYPE_INTEGER.
>
> Patch 1 reformats msi_wmi_notify() to reduce nesting by using early
> returns and a switch case in preparation for handling this new data
> type.
>
> [...]
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.
FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent or clearly a regression fix.
The list of commits applied:
[1/2] platform/x86: msi-wmi: Reformat msi_wmi_notify()
commit: 43a862be3002ac9385cee76da9b403d6107c890b
[2/2] platform/x86: msi-wmi: Add MSI Claw M-Center keys
commit: 0c716d1848ac86cd4aa4ea2a997bf1e835017869
--
i.
Am 13.06.26 um 04:16 schrieb Derek J. Clark: > MSI Claw devices produce WMI events through the MSI WMI hotkeys GUID for > some of their buttons. When pressed, these cause spam in the kernel. The > Claws use a GUID already supported by msi-wmi, but use an > ACPI_TYPE_BUFFER instead of an ACPI_TYPE_INTEGER. > > Patch 1 reformats msi_wmi_notify() to reduce nesting by using early > returns and a switch case in preparation for handling this new data > type. > > Patch 2 adds known MSI Claw event keycodes to the keymap and support for > ACPI_TYPE_BUFFER. For the whole series: Reviewed-by: Armin Wolf <W_Armin@gmx.de> > > Signed-off-by: Derek J. Clark <derekjohn.clark@gmail.com> > --- > v2: > - Add comments explaining buffer fields & length. > - Test that we have at lease u8[2] before assignment of key ID > v1: https://lore.kernel.org/platform-driver-x86/20260611223920.1679438-1-derekjohn.clark@gmail.com/ > Derek J. Clark (2): > platform/x86: msi-wmi: Reformat msi_wmi_notify() > platform/x86: msi-wmi: Add MSI Claw M-Center keys > > drivers/platform/x86/msi-wmi.c | 97 +++++++++++++++++++++++----------- > 1 file changed, 65 insertions(+), 32 deletions(-) >
© 2016 - 2026 Red Hat, Inc.