diff mbox series

gpiolib: acpi: Ignore GPIO 11 interrupt on Acer Nitro 16S AI

Message ID 20261007120944.1705014-1-abduvaliy.hbai@gmail.com
State New
Headers show
Series gpiolib: acpi: Ignore GPIO 11 interrupt on Acer Nitro 16S AI | expand

Commit Message

Abduvaliy Abdulazizov Oct. 7, 2026, 12:09 p.m. UTC
The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
V 16S AI: the firmware powers the internal USB camera (0408:4059)
through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
it as an input cuts the power, so the camera never enumerates. On this
model the same rail also powers the internal microphones, so they do
not work either.

Booting with gpiolib_acpi.ignore_interrupt=AMDI0030:00@11 fixes both
the camera and the microphones. Add a DMI quirk for this family too.

Tested-by: Trijan Koju <trijankoju11@gmail.com>
Assisted-by: LLM
Signed-off-by: Abduvaliy Abdulazizov <abduvaliy.hbai@gmail.com>
---
This goes on top of commit 6da1f3437435 ("gpiolib: acpi: Ignore GPIO 11
interrupt on Acer Nitro V 16S AI") in the gpio-intel fixes branch.

DMI of the tested machine:
  sys_vendor:     Acer
  product_name:   Nitro AN16S-61
  product_family: Acer Nitro 16S AI
  board_name:     EV3_SKF
  bios_version:   V1.53

 drivers/gpio/gpiolib-acpi-quirks.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Mika Westerberg Oct. 16, 2026, 5:26 a.m. UTC | #1
On Wed, Oct 07, 2026 at 05:09:44PM +0500, Abduvaliy Abdulazizov wrote:
> The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
> V 16S AI: the firmware powers the internal USB camera (0408:4059)
> through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
> it as an input cuts the power, so the camera never enumerates. On this
> model the same rail also powers the internal microphones, so they do
> not work either.
> 
> Booting with gpiolib_acpi.ignore_interrupt=AMDI0030:00@11 fixes both
> the camera and the microphones. Add a DMI quirk for this family too.
> 
> Tested-by: Trijan Koju <trijankoju11@gmail.com>
> Assisted-by: LLM
> Signed-off-by: Abduvaliy Abdulazizov <abduvaliy.hbai@gmail.com>

Acked-by: Mika Westerberg <westeri@kernel.org>
Bartosz Golaszewski Oct. 16, 2026, 9:02 a.m. UTC | #2
On Fri, 16 Oct 2026 07:26:02 +0200, Mika Westerberg
<mika.westerberg@linux.intel.com> said:
> On Wed, Oct 07, 2026 at 05:09:44PM +0500, Abduvaliy Abdulazizov wrote:
>> The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
>> V 16S AI: the firmware powers the internal USB camera (0408:4059)
>> through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
>> it as an input cuts the power, so the camera never enumerates. On this
>> model the same rail also powers the internal microphones, so they do
>> not work either.
>>
>> Booting with gpiolib_acpi.ignore_interrupt=AMDI0030:00@11 fixes both
>> the camera and the microphones. Add a DMI quirk for this family too.
>>
>> Tested-by: Trijan Koju <trijankoju11@gmail.com>
>> Assisted-by: LLM
>> Signed-off-by: Abduvaliy Abdulazizov <abduvaliy.hbai@gmail.com>
>
> Acked-by: Mika Westerberg <westeri@kernel.org>
>

Andy, Mika: do you want me to queue this as well for next week's fixes PR to
Linus?

Bartosz
Mika Westerberg Oct. 16, 2026, 10:32 a.m. UTC | #3
Hi,

On Fri, Oct 16, 2026 at 05:02:11AM -0400, Bartosz Golaszewski wrote:
> On Fri, 16 Oct 2026 07:26:02 +0200, Mika Westerberg
> <mika.westerberg@linux.intel.com> said:
> > On Wed, Oct 07, 2026 at 05:09:44PM +0500, Abduvaliy Abdulazizov wrote:
> >> The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
> >> V 16S AI: the firmware powers the internal USB camera (0408:4059)
> >> through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
> >> it as an input cuts the power, so the camera never enumerates. On this
> >> model the same rail also powers the internal microphones, so they do
> >> not work either.
> >>
> >> Booting with gpiolib_acpi.ignore_interrupt=AMDI0030:00@11 fixes both
> >> the camera and the microphones. Add a DMI quirk for this family too.
> >>
> >> Tested-by: Trijan Koju <trijankoju11@gmail.com>
> >> Assisted-by: LLM
> >> Signed-off-by: Abduvaliy Abdulazizov <abduvaliy.hbai@gmail.com>
> >
> > Acked-by: Mika Westerberg <westeri@kernel.org>
> >
> 
> Andy, Mika: do you want me to queue this as well for next week's fixes PR to
> Linus?

That would be great, thanks!
Bartosz Golaszewski Oct. 19, 2026, 8:01 a.m. UTC | #4
On Wed, 07 Oct 2026 17:09:44 +0500, Abduvaliy Abdulazizov wrote:
> The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
> V 16S AI: the firmware powers the internal USB camera (0408:4059)
> through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
> it as an input cuts the power, so the camera never enumerates. On this
> model the same rail also powers the internal microphones, so they do
> not work either.
> 
> [...]

Applied, thanks!

[1/1] gpiolib: acpi: Ignore GPIO 11 interrupt on Acer Nitro 16S AI
      https://git.kernel.org/brgl/c/5a088d1b7266249e7701a94fc90fc829d1ad5ba1

Best regards,
Andy Shevchenko Oct. 19, 2026, 1:29 p.m. UTC | #5
On Mon, Oct 19, 2026 at 10:01:08AM +0200, Bartosz Golaszewski wrote:
> On Wed, 07 Oct 2026 17:09:44 +0500, Abduvaliy Abdulazizov wrote:
> > The Acer Nitro 16S AI (AN16S-61) has the same problem as the Acer Nitro
> > V 16S AI: the firmware powers the internal USB camera (0408:4059)
> > through GPIO 11 of AMDI0030, but also lists that pin in _AEI. Requesting
> > it as an input cuts the power, so the camera never enumerates. On this
> > model the same rail also powers the internal microphones, so they do
> > not work either.

[...]

> Applied, thanks!
> 
> [1/1] gpiolib: acpi: Ignore GPIO 11 interrupt on Acer Nitro 16S AI
>       https://git.kernel.org/brgl/c/5a088d1b7266249e7701a94fc90fc829d1ad5ba1

You actually applied my PT to for-next instead of for-current...
diff mbox series

Patch

diff --git a/drivers/gpio/gpiolib-acpi-quirks.c b/drivers/gpio/gpiolib-acpi-quirks.c
index dbfd820..9f2ede4 100644
--- a/drivers/gpio/gpiolib-acpi-quirks.c
+++ b/drivers/gpio/gpiolib-acpi-quirks.c
@@ -359,6 +359,20 @@  static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_interrupt = "AMDI0030:00@11",
 		},
 	},
+	{
+		/*
+		 * Same camera power enable on GPIO 11 as the Acer Nitro V 16S AI
+		 * above. It also powers the internal microphones.
+		 * Found in BIOS V1.53
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Acer"),
+			DMI_MATCH(DMI_PRODUCT_FAMILY, "Acer Nitro 16S AI"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_interrupt = "AMDI0030:00@11",
+		},
+	},
 	{
 		/*
 		 * Wakeup only works when keyboard backlight is turned off