ACPICA: Events: Dispatch GPEs after enabling for the first time
authorErik Schmauss <erik.schmauss@intel.com>
Wed, 14 Mar 2018 23:12:59 +0000 (16:12 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 18 Mar 2018 17:52:00 +0000 (18:52 +0100)
commit87cd826b5979d91d4f2ba189e0652820f2da417f
treebf6d9d3f5edf4eb692af63289b2fbf6724465f8e
parent8d5934952f26c25431dbc21aa8ae7614bb8f88c3
ACPICA: Events: Dispatch GPEs after enabling for the first time

After being enabled for the first time, the GPEs may have STS bits already
set. Setting EN bits is not sufficient to trigger the GPEs again, so this
patch polls GPEs after enabling them for the first time.
This is a cleaner version on top of the "GPE clear" fix generated according
to Mika's report and Rafael's original Linux based fix. Based on Linux
commit originated from Rafael J. Wysocki, fixed by Lv Zheng.

Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Erik Schmauss <erik.schmauss@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/acevents.h
drivers/acpi/acpica/evgpeblk.c
drivers/acpi/acpica/evxface.c
drivers/acpi/acpica/evxfgpe.c
include/acpi/actypes.h
include/acpi/platform/aclinux.h