From: Alex Hung Date: Fri, 3 Dec 2021 21:28:10 +0000 (-0700) Subject: platform/x86/intel: hid: add quirk to support Surface Go 3 X-Git-Tag: accepted/tizen/unified/20230118.172025~4434 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20d1064ac956da9bf8625558d2d27567753298a8;p=platform%2Fkernel%2Flinux-rpi.git platform/x86/intel: hid: add quirk to support Surface Go 3 commit 7d0c009043f6a970f62dbf5aecda9f8c3ccafcff upstream. Similar to other systems Surface Go 3 requires a DMI quirk to enable 5 button array for power and volume buttons. Buglink: https://github.com/linux-surface/linux-surface/issues/595 Cc: stable@vger.kernel.org Signed-off-by: Alex Hung Link: https://lore.kernel.org/r/20211203212810.2666508-1-alex.hung@canonical.com Signed-off-by: Hans de Goede Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/platform/x86/intel/hid.c b/drivers/platform/x86/intel/hid.c index 0859894..13f8cf70 100644 --- a/drivers/platform/x86/intel/hid.c +++ b/drivers/platform/x86/intel/hid.c @@ -99,6 +99,13 @@ static const struct dmi_system_id button_array_table[] = { DMI_MATCH(DMI_PRODUCT_FAMILY, "ThinkPad X1 Tablet Gen 2"), }, }, + { + .ident = "Microsoft Surface Go 3", + .matches = { + DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), + DMI_MATCH(DMI_PRODUCT_NAME, "Surface Go 3"), + }, + }, { } };