Skip to content

Commit c43f3a4

Browse files
committed
Fix DMI check for Surface Pro 2017
The Surface Pro (2017 model) reports 'Surface Pro' as product name and not, as previously thought, 'Surface Pro 2017'. As this is a bit generic and could conflict with the original Surface Pro device, let's match the SKUs instead.
1 parent 371d572 commit c43f3a4

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

module/surfacegen5_acpi_sid.c

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,18 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
8585
{
8686
.ident = "Surface Pro 5",
8787
.matches = {
88+
/* match for SKU here due to generic product name "Surface Pro" */
8889
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
89-
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 2017"),
90+
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1796"),
91+
},
92+
.driver_data = (void *)&si_device_pro_5,
93+
},
94+
{
95+
.ident = "Surface Pro 5 (LTE)",
96+
.matches = {
97+
/* match for SKU here due to generic product name "Surface Pro" */
98+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
99+
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1807"),
90100
},
91101
.driver_data = (void *)&si_device_pro_5,
92102
},

0 commit comments

Comments
 (0)