Skip to content
Commit d63f11c0 authored by Mario Limonciello's avatar Mario Limonciello Committed by Bartosz Golaszewski
Browse files

gpiolib-acpi: Don't set GPIOs for wakeup in S3 mode

commit 1796f808 ("HID: i2c-hid: acpi: Stop setting wakeup_capable")
adjusted the policy to enable wakeup by default if the ACPI tables
indicated that a device was wake capable.

It was reported however that this broke suspend on at least two System76
systems in S3 mode and two Lenovo Gen2a systems, but only with S3.
When the machines are set to s2idle, wakeup behaves properly.

Configuring the GPIOs for wakeup with S3 doesn't work properly, so only
set it when the system supports low power idle.

Fixes: 1796f808 ("HID: i2c-hid: acpi: Stop setting wakeup_capable")
Fixes: b38f2d5d ("i2c: acpi: Use ACPI wake capability bit to set wake_irq")
Link: https://gitlab.freedesktop.org/drm/amd/-/issues/2357
Link: https://bugzilla.redhat.com/show_bug.cgi?id=2162013


Reported-by: default avatarNathan Smythe <ncsmythe@scruboak.org>
Tested-by: default avatarNathan Smythe <ncsmythe@scruboak.org>
Suggested-by: default avatarRaul Rangel <rrangel@chromium.org>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Acked-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 2241ab53
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment