Skip to content

ACPICA/ACPI: clean up power button event management during resume

Bjorn Helgaas linux-acpi 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ACPICA: Use fixed event wrappers to enable/disable/cleardrivers/acpi/acpica/evevent.c drivers/acpi/acpica/hwsleep.c+5 -190 replies
2/3ACPICA: Clear GPEs and power button events during wakeupdrivers/acpi/acpica/hwsleep.c+6 -90 replies
3/3ACPI: remove clearing of events on resume, now that ACPI CA does itdrivers/acpi/sleep.c+0 -140 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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