]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 16:53:52 +0000 (17:53 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 22:26:15 +0000 (23:26 +0100)
commitf3d8a96ecdefd4371a8494911632e5a8ad2dca14
treebb3ed3ce7000e5377cb8bc602c580bfa9ecfb4f3
parent4f80bfcf984317c119fee9a156cf8bcc1eb1cd7a
ACPI: PM: s2idle: Prevent spurious SCIs from waking up the system

If the platform triggers a spurious SCI even though the status bit
is not set for any GPE when the system is suspended to idle, it will
be treated as a genuine wakeup, so avoid that by checking if any GPEs
are active at all before returning 'true' from acpi_s2idle_wake().

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206413
Fixes: 8404a6309084 ("PM: sleep: Simplify suspend-to-idle control flow")
Reported-by: Tsuchiya Yuto <kitakar@gmail.com>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c