]> git.karo-electronics.de Git - linux-beck.git/commit
ACPICA: Clear all non-wakeup GPEs in acpi_hw_enable_wakeup_gpe_block()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Sep 2014 00:24:38 +0000 (02:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 30 Sep 2014 19:04:46 +0000 (21:04 +0200)
commit5a0b8deeeb19906b24a48d0078aa6b64dc0b4dab
tree12816bef99f66f52f79b46d6299fcb4786b868e1
parent2670e02a2deab4ea513a37a1356be5fad6e5156b
ACPICA: Clear all non-wakeup GPEs in acpi_hw_enable_wakeup_gpe_block()

Since acpi_hw_enable_wakeup_gpe_block() is currently always called
after disabling all GPEs, it can actually write zeros to all
non-wakeup enable bits unconditionally.

That will be useful going forward for disabling runtime GPEs and
enabling wakeup GPEs in one go instead of doing that in two steps
(disable runtime and enable wakeup) which in theory may lead to a
loss of a wakeup event.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/hwgpe.c