]> git.baikalelectronics.ru Git - kernel.git/commit
ACPICA: Allow acpi_any_gpe_status_set() to skip one GPE
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 25 Mar 2020 10:54:29 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Apr 2020 08:50:09 +0000 (10:50 +0200)
commit380aefdf4c93852424d78c94762e2686eecc51a9
tree6a86fc57a69ef7e0f7da1eaaa6194081d318db30
parent384d3eb5d777b9f2ca816e02cce95e5fe8f9dca0
ACPICA: Allow acpi_any_gpe_status_set() to skip one GPE

commit 0f0ba018de1c860fc3353dd722b1dea6c38454da upstream.

The check carried out by acpi_any_gpe_status_set() is not precise enough
for the suspend-to-idle implementation in Linux and in some cases it is
necessary make it skip one GPE (specifically, the EC GPE) from the check
to prevent a race condition leading to a premature system resume from
occurring.

For this reason, redefine acpi_any_gpe_status_set() to take the number
of a GPE to skip as an argument.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=206629
Tested-by: Ondřej Caletka <ondrej@caletka.cz>
Cc: 5.4+ <stable@vger.kernel.org> # 5.4+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/acpica/achware.h
drivers/acpi/acpica/evxfgpe.c
drivers/acpi/acpica/hwgpe.c
drivers/acpi/sleep.c
include/acpi/acpixf.h