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 15" Intel version of Surface Laptop 3

In addition to a 13" version, there is also a 15" (business) version of
the Surface Laptop 3 based on Intel CPUs. This version also handles
wakeup by lid via (unmarked) GPEs, so add support for it as well.

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

authored by

Maximilian Luz and committed by
Hans de Goede
b970b732 d3d73d25

+12
+12
drivers/platform/surface/surface_gpe.c
··· 146 146 }, 147 147 .driver_data = (void *)lid_device_props_l4D, 148 148 }, 149 + { 150 + .ident = "Surface Laptop 3 (Intel 15\")", 151 + .matches = { 152 + /* 153 + * We match for SKU here due to different variants: The 154 + * AMD (15") version does not rely on GPEs. 155 + */ 156 + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"), 157 + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Laptop_3_1872"), 158 + }, 159 + .driver_data = (void *)lid_device_props_l4D, 160 + }, 149 161 { } 150 162 }; 151 163