]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
gpiolib: acpi: Add a quirk for Acer Nitro V15
authorMario Limonciello <mario.limonciello@amd.com>
Mon, 9 Jun 2025 02:34:08 +0000 (21:34 -0500)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 9 Jun 2025 20:09:24 +0000 (23:09 +0300)
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>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi-quirks.c

index 219667315b2c53a69f0b01feec425c6520d1f54b..c13545dce3492d4d52d090a4e9748f48a623ad38 100644 (file)
@@ -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 */
 };