0010-surface-gpe.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 0c10a9ea93f172ca0d71b117af7bdf7c808c8af7 Mon Sep 17 00:00:00 2001
  2. From: Maximilian Luz <luzmaximilian@gmail.com>
  3. Date: Sun, 12 Mar 2023 01:41:57 +0100
  4. Subject: [PATCH] platform/surface: gpe: Add support for Surface Pro 9
  5. Add the lid GPE used by the Surface Pro 9.
  6. Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
  7. Patchset: surface-gpe
  8. ---
  9. drivers/platform/surface/surface_gpe.c | 17 +++++++++++++++++
  10. 1 file changed, 17 insertions(+)
  11. diff --git a/drivers/platform/surface/surface_gpe.c b/drivers/platform/surface/surface_gpe.c
  12. index c219b840d491..69c4352e8406 100644
  13. --- a/drivers/platform/surface/surface_gpe.c
  14. +++ b/drivers/platform/surface/surface_gpe.c
  15. @@ -41,6 +41,11 @@ static const struct property_entry lid_device_props_l4F[] = {
  16. {},
  17. };
  18. +static const struct property_entry lid_device_props_l52[] = {
  19. + PROPERTY_ENTRY_U32("gpe", 0x52),
  20. + {},
  21. +};
  22. +
  23. static const struct property_entry lid_device_props_l57[] = {
  24. PROPERTY_ENTRY_U32("gpe", 0x57),
  25. {},
  26. @@ -107,6 +112,18 @@ static const struct dmi_system_id dmi_lid_device_table[] = {
  27. },
  28. .driver_data = (void *)lid_device_props_l4B,
  29. },
  30. + {
  31. + /*
  32. + * We match for SKU here due to product name clash with the ARM
  33. + * version.
  34. + */
  35. + .ident = "Surface Pro 9",
  36. + .matches = {
  37. + DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
  38. + DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_9_2038"),
  39. + },
  40. + .driver_data = (void *)lid_device_props_l52,
  41. + },
  42. {
  43. .ident = "Surface Book 1",
  44. .matches = {
  45. --
  46. 2.41.0