diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-02-04 18:31:02 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-02-16 12:52:54 +0100 |
commit | 9d09cb110868f027d015fbc6c64ba1e45a69a192 (patch) | |
tree | 7968b6c6db8564882479b20a9262a1c1f8320a5b /lib/netdev-notifier-error-inject.c | |
parent | a2ed7b29d0673ba361546e2d87dbbed149456c45 (diff) |
ACPI: PM: s2idle: Cancel wakeup before dispatching EC GPE
commit dc0075ba7f387fe4c48a8c674b11ab6f374a6acc upstream.
Commit 4a9af6cac050 ("ACPI: EC: Rework flushing of EC work while
suspended to idle") made acpi_ec_dispatch_gpe() check
pm_wakeup_pending(), but that is before canceling the SCI wakeup,
so pm_wakeup_pending() is always true. This causes the loop in
acpi_ec_dispatch_gpe() to always terminate after one iteration which
may not be correct.
Address this issue by canceling the SCI wakeup earlier, from
acpi_ec_dispatch_gpe() itself.
Fixes: 4a9af6cac050 ("ACPI: EC: Rework flushing of EC work while suspended to idle")
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions