ACPI: suspend: Wrong order of GPE restore.
A message that is not in the archive (sent off-list or not yet received): 20071016185520.6279.92045.stgit@samsung
Quoted 6 lines · Alexey Starikovskiy
acpi_leave_sleep_state()should have correct list of wake and runtime GPEs, which is available only afterdisable_wakeup_device()is called.Signed-off-by Alexey Starikovskiy <[email protected]>---
Ackedy-by Rafael J. Wysocki <[email protected]>
Quoted 30 lines
drivers/acpi/sleep/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)drivers/acpi/sleep/main.c +2
-2@@ -170,8 +170,8 @@ static int acpi_pm_finish(suspend_state_t pm_state) {u32 acpi_state = acpi_target_sleep_state; -acpi_leave_sleep_state (acpi_state);acpi_disable_wakeup_device (acpi_state); +acpi_leave_sleep_state (acpi_state);/* reset firmware waking vector */ acpi_set_firmware_waking_vector ((acpi_physical_address )0 );@@ -256,8 +256,8 @@ static int acpi_hibernation_enter(void)static void acpi_hibernation_finish (void ) { -acpi_leave_sleep_state (ACPI_STATE_S4 );acpi_disable_wakeup_device (ACPI_STATE_S4 ); +acpi_leave_sleep_state (ACPI_STATE_S4 );/* reset firmware waking vector */ acpi_set_firmware_waking_vector ((acpi_physical_address )0 );
Signature · 1 line
"Premature optimization is the root of all evil." - Donald Knuth