Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

platform/surface: gpe: Add support for Surface Laptop Studio

The new Surface Laptop Studio uses GPEs for lid events as well. Add an
entry for that so that the lid can be used to wake the device.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20211021111053.564133-1-luzmaximilian@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Maximilian Luz and committed by
Hans de Goede
ef51b9a5 59348401

+13
+13
drivers/platform/surface/surface_gpe.c
··· 26 26 {}, 27 27 }; 28 28 29 + static const struct property_entry lid_device_props_l4B[] = { 30 + PROPERTY_ENTRY_U32("gpe", 0x4B), 31 + {}, 32 + }; 33 + 29 34 static const struct property_entry lid_device_props_l4D[] = { 30 35 PROPERTY_ENTRY_U32("gpe", 0x4D), 31 36 {}, ··· 162 157 DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Laptop_3_1872"), 163 158 }, 164 159 .driver_data = (void *)lid_device_props_l4D, 160 + }, 161 + { 162 + .ident = "Surface Laptop Studio", 163 + .matches = { 164 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), 165 + DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Laptop Studio"), 166 + }, 167 + .driver_data = (void *)lid_device_props_l4B, 165 168 }, 166 169 { } 167 170 };