0010-surface-gpe.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 21c2c2cd1985f6050f652a36f6025cc64fc2e7a7 Mon Sep 17 00:00:00 2001
  2. From: Maximilian Luz <luzmaximilian@gmail.com>
  3. Date: Thu, 21 Jul 2022 02:15:50 +0200
  4. Subject: [PATCH] platform/surface: gpe: Add support for 13" Intel version of
  5. Surface Laptop 4
  6. The 13" Intel version of the Surface Laptop 4 uses the same GPE as the
  7. Surface Laptop Studio for wakeups via the lid. Set it up accordingly.
  8. Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
  9. Patchset: surface-gpe
  10. ---
  11. drivers/platform/surface/surface_gpe.c | 12 ++++++++++++
  12. 1 file changed, 12 insertions(+)
  13. diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surface/surface_gpe.c
  14. index 27365cbe1ee9..c219b840d491 100644
  15. --- a/drivers/platform/surface/surface_gpe.c
  16. +++ b/drivers/platform/surface/surface_gpe.c
  17. @@ -171,6 +171,18 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
  18. },
  19. .driver_data = (void *)lid_device_props_l4D,
  20. },
  21. + {
  22. + .ident = "Surface Laptop 4 (Intel 13\")",
  23. + .matches = {
  24. + /*
  25. + * We match for SKU here due to different variants: The
  26. + * AMD (15") version does not rely on GPEs.
  27. + */
  28. + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
  29. + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Laptop_4_1950:1951"),
  30. + },
  31. + .driver_data = (void *)lid_device_props_l4B,
  32. + },
  33. {
  34. .ident = "Surface Laptop Studio",
  35. .matches = {
  36. --
  37. 2.37.2