ACPICA: Introduce acpi_any_gpe_status_set()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Feb 2020 16:52:32 +0000 (17:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 18:52:57 +0000 (19:52 +0100)
commit3037406455674081a1377a511040e06c6aa86324
tree9d1cf6f835cfedb82ac5256074aafdcaf1ff975d
parent0671627a5faa339e0c85608d99f365f4a940c073
ACPICA: Introduce acpi_any_gpe_status_set()

commit ea128834dd76f9a72a35d011c651fa96658f06a7 upstream.

Introduce a new helper function, acpi_any_gpe_status_set(), for
checking the status bits of all enabled GPEs in one go.

It is needed to distinguish spurious SCIs from genuine ones when
deciding whether or not to wake up the system from suspend-to-idle.

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
include/acpi/acpixf.h