Skip to content

Commit ed13d4a

Browse files
qzedjwrdegoede
authored andcommitted
platform/surface: gpe: Add support for Surface Pro 8
The new Surface Pro 8 uses GPEs for lid events as well. Add an entry for that so that the lid can be used to wake the device. Note that this is a device with a keyboard type-cover, where this acts as the "lid". Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com> Link: https://lore.kernel.org/r/20220429180049.1282447-1-luzmaximilian@gmail.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
1 parent 2cdfa0c commit ed13d4a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

drivers/platform/surface/surface_gpe.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,14 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
9999
},
100100
.driver_data = (void *)lid_device_props_l4D,
101101
},
102+
{
103+
.ident = "Surface Pro 8",
104+
.matches = {
105+
DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
106+
DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 8"),
107+
},
108+
.driver_data = (void *)lid_device_props_l4B,
109+
},
102110
{
103111
.ident = "Surface Book 1",
104112
.matches = {

0 commit comments

Comments
 (0)