All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] gpiolib: acpi: Add a quirk for Acer Nitro V15
@ 2025-06-09  2:34 Mario Limonciello
  2025-06-09  6:07 ` Mika Westerberg
  0 siblings, 1 reply; 3+ messages in thread
From: Mario Limonciello @ 2025-06-09  2:34 UTC (permalink / raw)
  To: mario.limonciello, westeri, andriy.shevchenko, linus.walleij,
	brgl
  Cc: linux-gpio, linux-acpi

From: Mario Limonciello <mario.limonciello@amd.com>

It is reported that on Acer Nitro V15 suspend only works properly if the
keyboard backlight is turned off. In looking through the issue Acer Nitro
V15 has a GPIO (#8) specified in _AEI but it has no matching notify device
in _EVT. The values for GPIO #8 change as keyboard backlight is turned on
and off.

This makes it seem that GPIO #8 is actually supposed to be solely for
keyboard backlight.  Turning off the interrupt for this GPIO fixes the issue.
Add a quirk that does just that.

Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4169
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
---
 drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/drivers/gpio/gpiolib-acpi-quirks.c b/drivers/gpio/gpiolib-acpi-quirks.c
index 219667315b2c5..c13545dce3492 100644
--- a/drivers/gpio/gpiolib-acpi-quirks.c
+++ b/drivers/gpio/gpiolib-acpi-quirks.c
@@ -331,6 +331,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_interrupt = "AMDI0030:00@11",
 		},
 	},
+	{
+		/*
+		 * Wakeup only works when keyboard backlight is turned off
+		 * https://gitlab.freedesktop.org/drm/amd/-/issues/4169
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Acer Nitro V 15"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_interrupt = "AMDI0030:00@8",
+		},
+	},
 	{} /* Terminating entry */
 };
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gpiolib: acpi: Add a quirk for Acer Nitro V15
  2025-06-09  2:34 [PATCH] gpiolib: acpi: Add a quirk for Acer Nitro V15 Mario Limonciello
@ 2025-06-09  6:07 ` Mika Westerberg
  2025-06-09 20:09   ` Andy Shevchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Mika Westerberg @ 2025-06-09  6:07 UTC (permalink / raw)
  To: Mario Limonciello
  Cc: mario.limonciello, westeri, andriy.shevchenko, linus.walleij,
	brgl, linux-gpio, linux-acpi

On Sun, Jun 08, 2025 at 09:34:08PM -0500, Mario Limonciello wrote:
> From: Mario Limonciello <mario.limonciello@amd.com>
> 
> It is reported that on Acer Nitro V15 suspend only works properly if the
> keyboard backlight is turned off. In looking through the issue Acer Nitro
> V15 has a GPIO (#8) specified in _AEI but it has no matching notify device
> in _EVT. The values for GPIO #8 change as keyboard backlight is turned on
> and off.
> 
> This makes it seem that GPIO #8 is actually supposed to be solely for
> keyboard backlight.  Turning off the interrupt for this GPIO fixes the issue.
> Add a quirk that does just that.
> 
> Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4169
> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>

Acked-by: Mika Westerberg <westeri@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gpiolib: acpi: Add a quirk for Acer Nitro V15
  2025-06-09  6:07 ` Mika Westerberg
@ 2025-06-09 20:09   ` Andy Shevchenko
  0 siblings, 0 replies; 3+ messages in thread
From: Andy Shevchenko @ 2025-06-09 20:09 UTC (permalink / raw)
  To: Mika Westerberg
  Cc: Mario Limonciello, mario.limonciello, westeri, linus.walleij,
	brgl, linux-gpio, linux-acpi

On Mon, Jun 09, 2025 at 09:07:17AM +0300, Mika Westerberg wrote:
> On Sun, Jun 08, 2025 at 09:34:08PM -0500, Mario Limonciello wrote:
> > 
> > It is reported that on Acer Nitro V15 suspend only works properly if the
> > keyboard backlight is turned off. In looking through the issue Acer Nitro
> > V15 has a GPIO (#8) specified in _AEI but it has no matching notify device
> > in _EVT. The values for GPIO #8 change as keyboard backlight is turned on
> > and off.
> > 
> > This makes it seem that GPIO #8 is actually supposed to be solely for
> > keyboard backlight.  Turning off the interrupt for this GPIO fixes the issue.
> > Add a quirk that does just that.
> > 
> > Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4169
> > Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
> 
> Acked-by: Mika Westerberg <westeri@kernel.org>

Pushed to my review and testing queue, thanks!

-- 
With Best Regards,
Andy Shevchenko



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-06-09 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-09  2:34 [PATCH] gpiolib: acpi: Add a quirk for Acer Nitro V15 Mario Limonciello
2025-06-09  6:07 ` Mika Westerberg
2025-06-09 20:09   ` Andy Shevchenko

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.