2020-09-19 23:00:16 +00:00
|
|
|
From b6ed862e94fa768f9545eee70b690c66371897fb Mon Sep 17 00:00:00 2001
|
2020-08-18 04:04:26 +00:00
|
|
|
From: Maximilian Luz <luzmaximilian@gmail.com>
|
|
|
|
Date: Sun, 16 Aug 2020 23:39:56 +0200
|
|
|
|
Subject: [PATCH 7/7] surface-gpe
|
|
|
|
|
|
|
|
---
|
|
|
|
drivers/platform/x86/Kconfig | 9 +
|
|
|
|
drivers/platform/x86/Makefile | 1 +
|
2020-09-17 21:25:44 +00:00
|
|
|
drivers/platform/x86/surface_gpe.c | 307 +++++++++++++++++++++++++++++
|
|
|
|
3 files changed, 317 insertions(+)
|
2020-08-18 04:04:26 +00:00
|
|
|
create mode 100644 drivers/platform/x86/surface_gpe.c
|
|
|
|
|
|
|
|
diff --git a/drivers/platform/x86/Kconfig b/drivers/platform/x86/Kconfig
|
2020-09-12 14:11:46 +00:00
|
|
|
index 5495e3702f65..e0af35fed2d5 100644
|
2020-08-18 04:04:26 +00:00
|
|
|
--- a/drivers/platform/x86/Kconfig
|
|
|
|
+++ b/drivers/platform/x86/Kconfig
|
2020-09-08 14:35:49 +00:00
|
|
|
@@ -1223,6 +1223,15 @@ config SURFACE_BOOK1_DGPU_SWITCH
|
|
|
|
This driver provides a sysfs switch to set the power-state of the
|
|
|
|
discrete GPU found on the Microsoft Surface Book 1.
|
2020-08-18 04:04:26 +00:00
|
|
|
|
|
|
|
+config SURFACE_GPE
|
|
|
|
+ tristate "Surface GPE/Lid Driver"
|
|
|
|
+ depends on ACPI
|
|
|
|
+ help
|
|
|
|
+ This driver marks the GPEs related to the ACPI lid device found on
|
|
|
|
+ Microsoft Surface devices as wakeup sources and prepares them
|
|
|
|
+ accordingly. It is required on those devices to allow wake-ups from
|
|
|
|
+ suspend by opening the lid.
|
|
|
|
+
|
|
|
|
config INTEL_PUNIT_IPC
|
|
|
|
tristate "Intel P-Unit IPC Driver"
|
|
|
|
---help---
|
|
|
|
diff --git a/drivers/platform/x86/Makefile b/drivers/platform/x86/Makefile
|
2020-09-12 14:11:46 +00:00
|
|
|
index b3e0a2c6924b..c6e934a73a8d 100644
|
2020-08-18 04:04:26 +00:00
|
|
|
--- a/drivers/platform/x86/Makefile
|
|
|
|
+++ b/drivers/platform/x86/Makefile
|
2020-09-08 14:35:49 +00:00
|
|
|
@@ -87,6 +87,7 @@ obj-$(CONFIG_SURFACE_PRO3_BUTTON) += surfacepro3_button.o
|
2020-08-18 04:04:26 +00:00
|
|
|
obj-$(CONFIG_SURFACE_3_BUTTON) += surface3_button.o
|
|
|
|
obj-$(CONFIG_SURFACE_3_POWER_OPREGION) += surface3_power.o
|
2020-09-08 14:35:49 +00:00
|
|
|
obj-$(CONFIG_SURFACE_BOOK1_DGPU_SWITCH) += sb1_dgpu_sw.o
|
2020-08-18 04:04:26 +00:00
|
|
|
+obj-$(CONFIG_SURFACE_GPE) += surface_gpe.o
|
|
|
|
obj-$(CONFIG_INTEL_PUNIT_IPC) += intel_punit_ipc.o
|
|
|
|
obj-$(CONFIG_INTEL_BXTWC_PMIC_TMU) += intel_bxtwc_tmu.o
|
|
|
|
obj-$(CONFIG_INTEL_TELEMETRY) += intel_telemetry_core.o \
|
|
|
|
diff --git a/drivers/platform/x86/surface_gpe.c b/drivers/platform/x86/surface_gpe.c
|
|
|
|
new file mode 100644
|
2020-09-17 21:25:44 +00:00
|
|
|
index 000000000000..2857e3862ca4
|
2020-08-18 04:04:26 +00:00
|
|
|
--- /dev/null
|
|
|
|
+++ b/drivers/platform/x86/surface_gpe.c
|
2020-09-17 21:25:44 +00:00
|
|
|
@@ -0,0 +1,307 @@
|
2020-08-18 04:04:26 +00:00
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
+/*
|
|
|
|
+ * Surface GPE/Lid driver to enable wakeup from suspend via the lid by
|
2020-09-17 21:25:44 +00:00
|
|
|
+ * properly configuring the respective GPEs. Required for wakeup via lid on
|
|
|
|
+ * newer Intel-based Microsoft Surface devices.
|
2020-08-18 04:04:26 +00:00
|
|
|
+ */
|
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
|
|
|
+
|
2020-08-18 04:04:26 +00:00
|
|
|
+#include <linux/acpi.h>
|
|
|
|
+#include <linux/dmi.h>
|
|
|
|
+#include <linux/kernel.h>
|
|
|
|
+#include <linux/module.h>
|
|
|
|
+#include <linux/platform_device.h>
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+/*
|
|
|
|
+ * Note: The GPE numbers for the lid devices found below have been obtained
|
|
|
|
+ * from ACPI/the DSDT table, specifically from the GPE handler for the
|
|
|
|
+ * lid.
|
|
|
|
+ */
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+static const struct property_entry lid_device_props_l17[] = {
|
|
|
|
+ PROPERTY_ENTRY_U32("gpe", 0x17),
|
|
|
|
+ {},
|
2020-08-18 04:04:26 +00:00
|
|
|
+};
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+static const struct property_entry lid_device_props_l4D[] = {
|
|
|
|
+ PROPERTY_ENTRY_U32("gpe", 0x4D),
|
|
|
|
+ {},
|
2020-08-18 04:04:26 +00:00
|
|
|
+};
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+static const struct property_entry lid_device_props_l4F[] = {
|
|
|
|
+ PROPERTY_ENTRY_U32("gpe", 0x4F),
|
|
|
|
+ {},
|
2020-08-18 04:04:26 +00:00
|
|
|
+};
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+static const struct property_entry lid_device_props_l57[] = {
|
|
|
|
+ PROPERTY_ENTRY_U32("gpe", 0x57),
|
|
|
|
+ {},
|
2020-08-18 04:04:26 +00:00
|
|
|
+};
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+/*
|
|
|
|
+ * Note: When changing this, don't forget to check that the MODULE_ALIAS below
|
|
|
|
+ * still fits.
|
|
|
|
+ */
|
2020-08-18 04:04:26 +00:00
|
|
|
+static const struct dmi_system_id dmi_lid_device_table[] = {
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Pro 4",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 4"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l17,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Pro 5",
|
|
|
|
+ .matches = {
|
|
|
|
+ /*
|
|
|
|
+ * We match for SKU here due to generic product name
|
|
|
|
+ * "Surface Pro".
|
|
|
|
+ */
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1796"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4F,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Pro 5 (LTE)",
|
|
|
|
+ .matches = {
|
|
|
|
+ /*
|
|
|
|
+ * We match for SKU here due to generic product name
|
|
|
|
+ * "Surface Pro"
|
|
|
|
+ */
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Pro_1807"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4F,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Pro 6",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 6"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4F,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Pro 7",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Pro 7"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4D,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Book 1",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Book"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l17,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Book 2",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Book 2"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l17,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Book 3",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Book 3"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4D,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Laptop 1",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Laptop"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l57,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Laptop 2",
|
|
|
|
+ .matches = {
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Surface Laptop 2"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l57,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ .ident = "Surface Laptop 3 (Intel 13\")",
|
|
|
|
+ .matches = {
|
|
|
|
+ /*
|
|
|
|
+ * We match for SKU here due to different vairants: The
|
|
|
|
+ * AMD (15") version does not rely on GPEs.
|
|
|
|
+ */
|
|
|
|
+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
|
|
|
|
+ DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "Surface_Laptop_3_1867:1868"),
|
|
|
|
+ },
|
2020-09-10 20:26:25 +00:00
|
|
|
+ .driver_data = (void *)lid_device_props_l4D,
|
2020-08-18 04:04:26 +00:00
|
|
|
+ },
|
|
|
|
+ { }
|
|
|
|
+};
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+struct surface_lid_device {
|
|
|
|
+ u32 gpe_number;
|
|
|
|
+};
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+static int surface_lid_enable_wakeup(struct device *dev, bool enable)
|
2020-08-18 04:04:26 +00:00
|
|
|
+{
|
2020-09-10 20:26:25 +00:00
|
|
|
+ const struct surface_lid_device *lid = dev_get_drvdata(dev);
|
2020-08-18 04:04:26 +00:00
|
|
|
+ int action = enable ? ACPI_GPE_ENABLE : ACPI_GPE_DISABLE;
|
|
|
|
+ acpi_status status;
|
|
|
|
+
|
|
|
|
+ status = acpi_set_gpe_wake_mask(NULL, lid->gpe_number, action);
|
2020-09-17 21:25:44 +00:00
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ dev_err(dev, "failed to set GPE wake mask: %s\n",
|
|
|
|
+ acpi_format_exception(status));
|
2020-08-18 04:04:26 +00:00
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static int surface_gpe_suspend(struct device *dev)
|
|
|
|
+{
|
2020-09-10 20:26:25 +00:00
|
|
|
+ return surface_lid_enable_wakeup(dev, true);
|
2020-08-18 04:04:26 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static int surface_gpe_resume(struct device *dev)
|
|
|
|
+{
|
2020-09-10 20:26:25 +00:00
|
|
|
+ return surface_lid_enable_wakeup(dev, false);
|
2020-08-18 04:04:26 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static SIMPLE_DEV_PM_OPS(surface_gpe_pm, surface_gpe_suspend, surface_gpe_resume);
|
|
|
|
+
|
|
|
|
+static int surface_gpe_probe(struct platform_device *pdev)
|
|
|
|
+{
|
2020-09-10 20:26:25 +00:00
|
|
|
+ struct surface_lid_device *lid;
|
|
|
|
+ u32 gpe_number;
|
2020-09-17 21:25:44 +00:00
|
|
|
+ acpi_status status;
|
|
|
|
+ int ret;
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+ ret = device_property_read_u32(&pdev->dev, "gpe", &gpe_number);
|
|
|
|
+ if (ret) {
|
|
|
|
+ dev_err(&pdev->dev, "failed to read 'gpe' property: %d\n", ret);
|
|
|
|
+ return ret;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ lid = devm_kzalloc(&pdev->dev, sizeof(*lid), GFP_KERNEL);
|
|
|
|
+ if (!lid)
|
|
|
|
+ return -ENOMEM;
|
|
|
|
+
|
|
|
|
+ lid->gpe_number = gpe_number;
|
|
|
|
+ platform_set_drvdata(pdev, lid);
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+ status = acpi_mark_gpe_for_wake(NULL, gpe_number);
|
2020-09-17 21:25:44 +00:00
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ dev_err(&pdev->dev, "failed to mark GPE for wake: %s\n",
|
|
|
|
+ acpi_format_exception(status));
|
2020-08-18 04:04:26 +00:00
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+ status = acpi_enable_gpe(NULL, gpe_number);
|
2020-09-17 21:25:44 +00:00
|
|
|
+ if (ACPI_FAILURE(status)) {
|
|
|
|
+ dev_err(&pdev->dev, "failed to enable GPE: %s\n",
|
|
|
|
+ acpi_format_exception(status));
|
2020-08-18 04:04:26 +00:00
|
|
|
+ return -EINVAL;
|
|
|
|
+ }
|
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+ ret = surface_lid_enable_wakeup(&pdev->dev, false);
|
|
|
|
+ if (ret)
|
2020-09-10 20:26:25 +00:00
|
|
|
+ acpi_disable_gpe(NULL, gpe_number);
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+ return ret;
|
2020-08-18 04:04:26 +00:00
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static int surface_gpe_remove(struct platform_device *pdev)
|
|
|
|
+{
|
2020-09-10 20:26:25 +00:00
|
|
|
+ struct surface_lid_device *lid = dev_get_drvdata(&pdev->dev);
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
|
|
|
+ /* restore default behavior without this module */
|
2020-09-10 20:26:25 +00:00
|
|
|
+ surface_lid_enable_wakeup(&pdev->dev, false);
|
2020-08-18 04:04:26 +00:00
|
|
|
+ acpi_disable_gpe(NULL, lid->gpe_number);
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static struct platform_driver surface_gpe_driver = {
|
|
|
|
+ .probe = surface_gpe_probe,
|
|
|
|
+ .remove = surface_gpe_remove,
|
|
|
|
+ .driver = {
|
|
|
|
+ .name = "surface_gpe",
|
|
|
|
+ .pm = &surface_gpe_pm,
|
|
|
|
+ .probe_type = PROBE_PREFER_ASYNCHRONOUS,
|
|
|
|
+ },
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+static struct platform_device *surface_gpe_device;
|
|
|
|
+
|
|
|
|
+static int __init surface_gpe_init(void)
|
|
|
|
+{
|
|
|
|
+ const struct dmi_system_id *match;
|
|
|
|
+ struct platform_device *pdev;
|
2020-09-10 20:26:25 +00:00
|
|
|
+ struct fwnode_handle *fwnode;
|
2020-08-18 04:04:26 +00:00
|
|
|
+ int status;
|
|
|
|
+
|
|
|
|
+ match = dmi_first_match(dmi_lid_device_table);
|
|
|
|
+ if (!match) {
|
2020-09-17 21:25:44 +00:00
|
|
|
+ pr_info("no compatible Microsoft Surface device found, exiting\n");
|
|
|
|
+ return -ENODEV;
|
2020-08-18 04:04:26 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ status = platform_driver_register(&surface_gpe_driver);
|
|
|
|
+ if (status)
|
|
|
|
+ return status;
|
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+ fwnode = fwnode_create_software_node(match->driver_data, NULL);
|
|
|
|
+ if (IS_ERR(fwnode)) {
|
|
|
|
+ status = PTR_ERR(fwnode);
|
|
|
|
+ goto err_node;
|
2020-08-18 04:04:26 +00:00
|
|
|
+ }
|
|
|
|
+
|
2020-09-17 21:25:44 +00:00
|
|
|
+ pdev = platform_device_alloc("surface_gpe", PLATFORM_DEVID_NONE);
|
|
|
|
+ if (!pdev) {
|
|
|
|
+ status = -ENOMEM;
|
|
|
|
+ goto err_alloc;
|
2020-08-18 04:04:26 +00:00
|
|
|
+ }
|
|
|
|
+
|
2020-09-10 20:26:25 +00:00
|
|
|
+ pdev->dev.fwnode = fwnode;
|
|
|
|
+
|
2020-08-18 04:04:26 +00:00
|
|
|
+ status = platform_device_add(pdev);
|
2020-09-17 21:25:44 +00:00
|
|
|
+ if (status)
|
|
|
|
+ goto err_add;
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
|
|
|
+ surface_gpe_device = pdev;
|
|
|
|
+ return 0;
|
2020-09-17 21:25:44 +00:00
|
|
|
+
|
|
|
|
+err_add:
|
|
|
|
+ platform_device_put(pdev);
|
|
|
|
+err_alloc:
|
|
|
|
+ fwnode_remove_software_node(fwnode);
|
|
|
|
+err_node:
|
|
|
|
+ platform_driver_unregister(&surface_gpe_driver);
|
|
|
|
+ return status;
|
2020-08-18 04:04:26 +00:00
|
|
|
+}
|
2020-09-10 20:26:25 +00:00
|
|
|
+module_init(surface_gpe_init);
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
|
|
|
+static void __exit surface_gpe_exit(void)
|
|
|
|
+{
|
2020-09-17 21:25:44 +00:00
|
|
|
+ struct fwnode_handle *fwnode = surface_gpe_device->dev.fwnode;
|
2020-08-18 04:04:26 +00:00
|
|
|
+
|
|
|
|
+ platform_device_unregister(surface_gpe_device);
|
|
|
|
+ platform_driver_unregister(&surface_gpe_driver);
|
2020-09-17 21:25:44 +00:00
|
|
|
+ fwnode_remove_software_node(fwnode);
|
2020-08-18 04:04:26 +00:00
|
|
|
+}
|
|
|
|
+module_exit(surface_gpe_exit);
|
|
|
|
+
|
|
|
|
+MODULE_AUTHOR("Maximilian Luz <luzmaximilian@gmail.com>");
|
|
|
|
+MODULE_DESCRIPTION("Surface GPE/Lid Driver");
|
|
|
|
+MODULE_LICENSE("GPL");
|
2020-09-10 20:26:25 +00:00
|
|
|
+MODULE_ALIAS("dmi:*:svnMicrosoftCorporation:pnSurface*:*");
|
2020-08-18 04:04:26 +00:00
|
|
|
--
|
|
|
|
2.28.0
|
|
|
|
|