Skip to content

Commit 2a9a217

Browse files
committed
surface_acpi: Update DMI check for Surface Pro 5
The correct product name for the Surface Pro (2017 model) is 'Surface Pro'. Match using SKU instead of product name on those devices, as the name is a bit generic. Original commit: linux-surface/surface-aggregator-module@c43f3a4
1 parent d1adb85 commit 2a9a217

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

drivers/platform/x86/surface_acpi.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3540,8 +3540,18 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
35403540
{
35413541
.ident = "Surface Pro 5",
35423542
.matches = {
3543+
/* match for SKU here due to generic product name "Surface Pro" */
35433544
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
3544-
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 2017"),
3545+
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1796"),
3546+
},
3547+
.driver_data = (void *)&si_device_pro_5,
3548+
},
3549+
{
3550+
.ident = "Surface Pro 5 (LTE)",
3551+
.matches = {
3552+
/* match for SKU here due to generic product name "Surface Pro" */
3553+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
3554+
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1807"),
35453555
},
35463556
.driver_data = (void *)&si_device_pro_5,
35473557
},

0 commit comments

Comments
 (0)