Skip to contentSkip to conversation

gpiolib: acpi: Add a ignore wakeup quirk for Clevo NH5xAx

PATCH Superseded Werner Sembach 2 participants 7 messages Feb 14, 2023 – Feb 15, 2023

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 gpiolib: acpi: Add a ignore wakeup quirk for Clevo NH5xAx

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

---
 drivers/gpio/gpiolib-acpi.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpio/gpiolib-acpi.c +12 -0
index e2ab4d5253bea..82e8e43582eba 100644
@@ -1612,6 +1612,18 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_wake = "ELAN0415:00@9",
 		},
 	},
+	{
+		/*
+		 * Spurious wakeups from TP_ATTN# pin
+		 * Found in BIOS 1.7.7
+		 */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "NH5xAx"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "SYNA1202:00@16",
+		},
+	},
 	{} /* Terminating entry */
 };
 
Signature · 1 line
2.34.1
#1 lore raw

Am 14.02.23 um 13:58 schrieb Werner Sembach:

Quoted 11 lines

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

Wrong GPIO number in description of v2 (and v1).

Quoted 29 lines
---
  drivers/gpio/gpiolib-acpi.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)
drivers/gpio/gpiolib-acpi.c +12 -0
index e2ab4d5253bea..82e8e43582eba 100644
@@ -1612,6 +1612,18 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
  			.ignore_wake = "ELAN0415:00@9",
  		},
  	},
+	{
+		/*
+		 * Spurious wakeups from TP_ATTN# pin
+		 * Found in BIOS 1.7.7
+		 */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "NH5xAx"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "SYNA1202:00@16",
+		},
+	},
  	{} /* Terminating entry */
  };
 
Reviewed-by on v3 1/1
#2 lore raw
In reply to Werner Sembach
Quoted 8 lines · Werner Sembach

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

Bart, I'm fine if it goes directly via your tree, or I can send it in usual bundle of fixes after rc1 (however it seems this deserves to make v6.2).

Quoted 34 lines

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

---
 drivers/gpio/gpiolib-acpi.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)
drivers/gpio/gpiolib-acpi.c +12 -0
index e2ab4d5253bea..82e8e43582eba 100644
@@ -1612,6 +1612,18 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
 			.ignore_wake = "ELAN0415:00@9",
 		},
 	},
+	{
+		/*
+		 * Spurious wakeups from TP_ATTN# pin
+		 * Found in BIOS 1.7.7
+		 */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "NH5xAx"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "SYNA1202:00@16",
+		},
+	},
 	{} /* Terminating entry */
 };
 
Signature · 1 line
2.34.1
Signature · 2 lines
With Best Regards,
Andy Shevchenko
#3 lore raw

Am 15.02.23 um 11:49 schrieb Andy Shevchenko:

Quoted 11 lines · Werner Sembach
Quoted 8 lines

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

Bart, I'm fine if it goes directly via your tree, or I can send it in usual bundle of fixes after rc1 (however it seems this deserves to make v6.2).

Just realized i did not add cc stable:

It is required for 6.1 also.

Quoted 37 lines
Quoted 34 lines

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

---
  drivers/gpio/gpiolib-acpi.c | 12 ++++++++++++
  1 file changed, 12 insertions(+)
drivers/gpio/gpiolib-acpi.c +12 -0
index e2ab4d5253bea..82e8e43582eba 100644
@@ -1612,6 +1612,18 @@ static const struct dmi_system_id gpiolib_acpi_quirks[] __initconst = {
  			.ignore_wake = "ELAN0415:00@9",
  		},
  	},
+	{
+		/*
+		 * Spurious wakeups from TP_ATTN# pin
+		 * Found in BIOS 1.7.7
+		 */
+		.matches = {
+			DMI_MATCH(DMI_BOARD_NAME, "NH5xAx"),
+		},
+		.driver_data = &(struct acpi_gpiolib_dmi_quirk) {
+			.ignore_wake = "SYNA1202:00@16",
+		},
+	},
  	{} /* Terminating entry */
  };
 
Signature · 1 line
2.34.1
#4 lore raw
Quoted 10 lines · Werner Sembach

Am 15.02.23 um 11:49 schrieb Andy Shevchenko:

Quoted 9 lines · Werner Sembach
Quoted 8 lines

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

Quoted 5 lines
Quoted 2 lines

Bart, I'm fine if it goes directly via your tree, or I can send it in usual bundle of fixes after rc1 (however it seems this deserves to make v6.2).

Just realized i did not add cc stable:

It is required for 6.1 also.

We have at least the following options:
- you can send specific request for stable after it becomes a part of upstream
- you can send a v4 with it

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#5 lore raw
Quoted 7 lines · Andy Shevchenko
Quoted 6 lines · Werner Sembach

Am 15.02.23 um 11:49 schrieb Andy Shevchenko:

Quoted 5 lines · Werner Sembach
Quoted 4 lines

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

Bart, I'm fine if it goes directly via your tree, or I can send it in usual bundle of fixes after rc1 (however it seems this deserves to make v6.2).

Actually we have yet another little fix. So maybe I can create a tagged bundle. Perhaps v4 will be the best option here.

Quoted 12 lines
Quoted 3 lines

Just realized i did not add cc stable:

It is required for 6.1 also.

We have at least the following options:
- you can send specific request for stable after it becomes a part of upstream
- you can send a v4 with it

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.

Signature · 2 lines
With Best Regards,
Andy Shevchenko
#6 lore raw

Am 15.02.23 um 14:28 schrieb Andy Shevchenko:

Quoted 8 lines · Andy Shevchenko
Quoted 7 lines · Werner Sembach
Quoted 6 lines

Am 15.02.23 um 11:49 schrieb Andy Shevchenko:

Quoted 5 lines · Werner Sembach
Quoted 4 lines

commit 1796f808e4bb ("HID: i2c-hid: acpi: Stop setting wakeup_capable") changed the policy such that I2C touchpads may be able to wake up the system by default if the system is configured as such.

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

However for some devices there is a bug, that is causing the touchpad to instantly wake up the device again once it gets deactivated. The root cause is still under investigation:
https://lore.kernel.org/linux-acpi/[email protected]/T/#mb2e738787f6b6208d17b92aa6e72d4de846d4e4d

Bart, I'm fine if it goes directly via your tree, or I can send it in usual bundle of fixes after rc1 (however it seems this deserves to make v6.2).

Actually we have yet another little fix. So maybe I can create a tagged bundle. Perhaps v4 will be the best option here.

on it

Quoted 12 lines
Quoted 12 lines
Quoted 4 lines

Just realized i did not add cc stable:

It is required for 6.1 also.

We have at least the following options:
- you can send specific request for stable after it becomes a part of upstream
- you can send a v4 with it

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

To workaround this problem for the time being, introduce a quirk for this model that will prevent the wakeup capability for being set for GPIO 16.