[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240117142942.5924-1-mario.limonciello@amd.com>
Date: Wed, 17 Jan 2024 08:29:42 -0600
From: Mario Limonciello <mario.limonciello@....com>
To: Linus Walleij <linus.walleij@...aro.org>, Bartosz Golaszewski
<brgl@...ev.pl>
CC: "open list:PIN CONTROL SUBSYSTEM" <linux-gpio@...r.kernel.org>, open list
<linux-kernel@...r.kernel.org>, <linux-acpi@...r.kernel.org>, Andy Shevchenko
<andriy.shevchenko@...ux.intel.com>, Mario Limonciello
<mario.limonciello@....com>, <stable@...r.kernel.org>, George Melikov
<mail@...likov.ru>
Subject: [PATCH] gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04
Spurious wakeups are reported on the GPD G1619-04 which
can be absolved by programming the GPIO to ignore wakeups.
Cc: stable@...r.kernel.org
Reported-and-tested-by: George Melikov <mail@...likov.ru>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3073
Signed-off-by: Mario Limonciello <mario.limonciello@....com>
---
drivers/gpio/gpiolib-acpi.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/drivers/gpio/gpiolib-acpi.c b/drivers/gpio/gpiolib-acpi.c
index 88066826d8e5..cd3e9657cc36 100644
--- a/drivers/gpio/gpiolib-acpi.c
+++ b/drivers/gpio/gpiolib-acpi.c
@@ -1651,6 +1651,20 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
.ignore_interrupt = "INT33FC:00@3",
},
},
+ {
+ /*
+ * Spurious wakeups from TP_ATTN# pin
+ * Found in BIOS 0.35
+ * https://gitlab.freedesktop.org/drm/amd/-/issues/3073
+ */
+ .matches = {
+ DMI_MATCH(DMI_SYS_VENDOR, "GPD"),
+ DMI_MATCH(DMI_PRODUCT_NAME, "G1619-04"),
+ },
+ .driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+ .ignore_wake = "PNP0C50:00@8",
+ },
+ },
{} /* Terminating entry */
};
--
2.34.1
Powered by blists - more mailing lists