Skip to contentSkip to conversation

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

PATCH Applied Abduvaliy Abdulazizov 5 participants 7 messages Oct 7 – Oct 19

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

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.

---
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(+)
drivers/gpio/gpiolib-acpi-quirks.c +14 -0
index dbfd820..9f2ede4 100644
@@ -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
Signature · 1 line
2.55.0
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Abduvaliy Abdulazizov

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.

Quoted 6 lines

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

#2 lore raw
Quoted 8 lines · Mika Westerberg
Quoted 7 lines · Abduvaliy Abdulazizov

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.

Quoted 9 lines
Quoted 6 lines

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

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

Bartosz

#3 lore raw

Hi,

Quoted 17 lines · Bartosz Golaszewski
Quoted 15 lines · Mika Westerberg
Quoted 13 lines · Abduvaliy Abdulazizov

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.

Quoted 5 lines
Quoted 2 lines

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

That would be great, thanks!

#4 lore raw
In reply to Abduvaliy Abdulazizov
Quoted 8 lines · Abduvaliy Abdulazizov

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,

Signature · 1 line
Bartosz Golaszewski <[email protected]>
maintainer
#5 lore raw
Quoted 7 lines · Bartosz Golaszewski
Quoted 6 lines · Abduvaliy Abdulazizov

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.

[...]

Quoted 4 lines

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...

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw
Quoted 10 lines · Andy Shevchenko
Quoted 7 lines · Bartosz Golaszewski
Quoted 6 lines · Abduvaliy Abdulazizov

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.

Quoted 9 lines

[...]

Quoted 4 lines

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...

Yes, by mistake but I sent out the PR anyway and it'll get upstream all the same (faster in fact. No worries.

Bart