Message ID | 20240117142942.5924-1-mario.limonciello@amd.com |
---|---|
State | Accepted |
Commit | 805c74eac8cb306dc69b87b6b066ab4da77ceaf1 |
Headers | show |
Series | gpiolib: acpi: Ignore touchpad wakeup on GPD G1619-04 | expand |
On Wed, Jan 17, 2024 at 08:29:42AM -0600, Mario Limonciello wrote: > Spurious wakeups are reported on the GPD G1619-04 which > can be absolved by programming the GPIO to ignore wakeups. Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
On Wed, Jan 17, 2024 at 3:29 PM Mario Limonciello <mario.limonciello@amd.com> wrote: > > Spurious wakeups are reported on the GPD G1619-04 which > can be absolved by programming the GPIO to ignore wakeups. > > Cc: stable@vger.kernel.org > Reported-and-tested-by: George Melikov <mail@gmelikov.ru> > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3073 > Signed-off-by: Mario Limonciello <mario.limonciello@amd.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 > Queued for fixes, thanks! Bart
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 */ };
Spurious wakeups are reported on the GPD G1619-04 which can be absolved by programming the GPIO to ignore wakeups. Cc: stable@vger.kernel.org Reported-and-tested-by: George Melikov <mail@gmelikov.ru> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3073 Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> --- drivers/gpio/gpiolib-acpi.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+)