[PATCH v2 0/1] Improved debugging for active GPIO causing wakeup
From: Mario Limonciello
Date: Thu Oct 13 2022 - 09:47:58 EST
Some laptops have been reported to wake up from s2idle when plugging
in the AC adapter or by closing the lid. This series adds support
to better debug what is going on.
With this patch in place we can see that this laptop woke up from
the following GPIO (which on this design happens to also be mirrored
to GPE0xe):
amd_gpio AMDI0030:00: GPIO 18 is active: 0x30057a00
The use of this particular GPIO is OEM design specific.
Knowing these details, it's possible to workaround this problem with
the following on the kernel command line using the parameter for
gpiolib_acpi introduced in commit 6b6af7bd5718f ("gpiolib: acpi:
Add support to ignore programming an interrupt")
acpi_mask_gpe=0x0e gpiolib_acpi.ignore_interrupt=AMDI0030:00@18
Mario Limonciello (1):
pinctrl: amd: Add dynamic debugging for active GPIOs
drivers/pinctrl/pinctrl-amd.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
--
2.34.1