Skip to contentSkip to conversation

gpiolib: acpi: Add quirk for Lenovo IdeaPad Slim 3 15ABR8

PATCH Applied Mateo Borda 3 participants 3 messages Sep 20 – Sep 24

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

PATCH 1/1 gpiolib: acpi: Add quirk for Lenovo IdeaPad Slim 3 15ABR8

On the Lenovo IdeaPad Slim 3 15ABR8 (82XM), the touchscreen (GTCH7503:00) GPIO interrupt on pin 10 is armed as a wake source. As soon as the system enters s2idle suspend the interrupt fires, causing an immediate spurious resume, so suspend is unusable.

Disabling wakeup for the device via sysfs or booting with gpiolib_acpi.ignore_wake=GTCH7503:00@10 avoids the problem, so add a DMI quirk that ignores wakeup on that pin.

---
 drivers/gpio/gpiolib-acpi-quirks.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/gpio/gpiolib-acpi-quirks.c +13 -0
index a0116f004..22c5fb149 100644
@@ -392,6 +392,19 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_wake = "VEN_0488:00@355",
 		},
 	},
+	{
+		/*
+		 * Lenovo IdeaPad Slim 3 15ABR8: the touchscreen wake IRQ fires as soon
+		 * as the system enters suspend, causing an immediate spurious resume.
+		 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "82XM"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "GTCH7503:00@10",
+		},
+	},
 	{} /* Terminating entry */
 };
 
Signature · 1 line
2.55.0
Acked-by on v1 1/1
#1 lore raw
Quoted 10 lines · Mateo Borda

On the Lenovo IdeaPad Slim 3 15ABR8 (82XM), the touchscreen (GTCH7503:00) GPIO interrupt on pin 10 is armed as a wake source. As soon as the system enters s2idle suspend the interrupt fires, causing an immediate spurious resume, so suspend is unusable.

Disabling wakeup for the device via sysfs or booting with gpiolib_acpi.ignore_wake=GTCH7503:00@10 avoids the problem, so add a DMI quirk that ignores wakeup on that pin.

maintainer Applied
#2 lore raw
In reply to Mateo Borda
Quoted 10 lines · Mateo Borda

On the Lenovo IdeaPad Slim 3 15ABR8 (82XM), the touchscreen (GTCH7503:00) GPIO interrupt on pin 10 is armed as a wake source. As soon as the system enters s2idle suspend the interrupt fires, causing an immediate spurious resume, so suspend is unusable.

Disabling wakeup for the device via sysfs or booting with gpiolib_acpi.ignore_wake=GTCH7503:00@10 avoids the problem, so add a DMI quirk that ignores wakeup on that pin.

[...]

Applied, thanks!

[1/1] gpiolib: acpi: Add quirk for Lenovo IdeaPad Slim 3 15ABR8

      commit: 8d37f20173a2760718bb02b58bafc5a7cac93d67

Best regards,

Signature · 2 lines
With Best Regards,
Andy Shevchenko