Home Home > GIT Browse > SLE15-SP1
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-05-17 16:59:18 +0200
committerTakashi Iwai <tiwai@suse.de>2019-05-17 16:59:51 +0200
commit437decc7383d41d2f98185dee7cddaa866578d8a (patch)
treefabf08e945fa4d08ba32851a29c78af2080fbf27
parenta40aec4f03aecfcb73403520ebc331921d0efbab (diff)
ACPI: PM: Set enable_for_wake for wakeup GPEs during
suspend-to-idle (bsc#1111666). suse-commit: 8a37efe023be54e207bd09969eaf43f20ffe3522
-rw-r--r--drivers/acpi/sleep.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/sleep.c b/drivers/acpi/sleep.c
index a012c623e332..c855a0cf3f75 100644
--- a/drivers/acpi/sleep.c
+++ b/drivers/acpi/sleep.c
@@ -760,6 +760,8 @@ static int acpi_freeze_prepare(void)
if (acpi_sci_irq_valid())
enable_irq_wake(acpi_sci_irq);
+ acpi_enable_wakeup_devices(ACPI_STATE_S0);
+
/* Change the configuration of GPEs to avoid spurious wakeup. */
acpi_enable_all_wakeup_gpes();
acpi_os_wait_events_complete();
@@ -797,6 +799,8 @@ static void acpi_freeze_restore(void)
{
acpi_enable_all_runtime_gpes();
+ acpi_disable_wakeup_devices(ACPI_STATE_S0);
+
if (acpi_sci_irq_valid())
disable_irq_wake(acpi_sci_irq);