Commit:     a3627f67b1d5ddd8f65eedc2a76da90fbe062530
Parent:     f4cb57007662a4ec3c2de3c027900223e0299bdd
Author:     Shaohua Li <[EMAIL PROTECTED]>
AuthorDate: Wed Jun 20 09:17:58 2007 +0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Fri Feb 1 18:30:55 2008 -0500

    ACPI: clear GPE earily in resume to avoid warning
    Wakeup GPE hasn't a handler. If system is waked up by such GPE like a
    USB hotplug, I saw a lot of error reporting the GPE hasn't handler.
    acpi_leave_sleep_state will clear the GPE but it's too late, we should
    do it before interrupt is re-enabled.
    Signed-off-by: Shaohua Li <[EMAIL PROTECTED]>
    Acked-by: Rafael J. Wysocki <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
 drivers/acpi/sleep/main.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/drivers/acpi/sleep/main.c b/drivers/acpi/sleep/main.c
index cbfa058..96d23b3 100644
--- a/drivers/acpi/sleep/main.c
+++ b/drivers/acpi/sleep/main.c
@@ -146,6 +146,13 @@ static int acpi_pm_enter(suspend_state_t pm_state)
        if (ACPI_SUCCESS(status) && (acpi_state == ACPI_STATE_S3))
+       /*
+        * Disable and clear GPE status before interrupt is enabled. Some GPEs
+        * (like wakeup GPE) haven't handler, this can avoid such GPE misfire.
+        * acpi_leave_sleep_state will reenable specific GPEs later
+        */
+       acpi_hw_disable_all_gpes();
        printk(KERN_DEBUG "Back to C!\n");
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to