ACPICA/ACPI: clean up power button event management during resume
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | ACPICA: Use fixed event wrappers to enable/disable/cleardrivers/ drivers/ | +5 | 0 replies | |
| 2/3 | ACPICA: Clear GPEs and power button events during wakeupdrivers/ | +6 | 0 replies | |
| 3/3 | ACPI: remove clearing of events on resume, now that ACPI CA does itdrivers/ | +0 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] ACPICA/ACPI: clean up power button event management during resume
This mini-series moves a little resume-path code from the host OS (Linux in this case) into the ACPI CA.
When resuming, OSPM must clear GPEs and power button events to prevent taking spurious events when interrupts are enabled. Linux currently clears these events itself, but this series adds code to do it in the ACPICA (in acpi_leave_sleep_state_prep(), which is already supposed to be called before enabling interrupts). This should be safe without any host OS changes.
The last patch takes out the event clearing from Linux and obviously depends on the previous ACPICA patches. It's safe to drop this one (no harm in clearing the events twice). I can easily post it again later.
---
Bjorn Helgaas (3):
ACPICA: Use fixed event wrappers to enable/disable/clear
ACPICA: Clear GPEs and power button events during wakeup
ACPI: remove clearing of events on resume, now that ACPI CA does it
drivers/acpi/acpica/evevent.c | 13 +++---------- drivers/acpi/acpica/hwsleep.c | 24 +++++++----------------- drivers/acpi/sleep.c | 14 -------------- 3 files changed, 10 insertions(+), 41 deletions(-)
Signature · 1 line
Bjorn