public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Bjorn Helgaas <bjorn.helgaas@hp.com>
To: Bob Moore <robert.moore@intel.com>, Len Brown <lenb@kernel.org>
Cc: linux-acpi@vger.kernel.org
Subject: [PATCH 0/3] ACPICA/ACPI: clean up power button event management during resume
Date: Fri, 19 Jun 2009 14:57:47 -0600	[thread overview]
Message-ID: <20090619205713.30130.79530.stgit@bob.kio> (raw)

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(-)

-- 
Bjorn

             reply	other threads:[~2009-06-19 20:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-19 20:57 Bjorn Helgaas [this message]
2009-06-19 20:57 ` [PATCH 1/3] ACPICA: Use fixed event wrappers to enable/disable/clear Bjorn Helgaas
2009-06-19 20:57 ` [PATCH 2/3] ACPICA: Clear GPEs and power button events during wakeup Bjorn Helgaas
2009-06-19 20:58 ` [PATCH 3/3] ACPI: remove clearing of events on resume, now that ACPI CA does it Bjorn Helgaas
2009-06-20  5:06 ` [PATCH 0/3] ACPICA/ACPI: clean up power button event management during resume Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090619205713.30130.79530.stgit@bob.kio \
    --to=bjorn.helgaas@hp.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=robert.moore@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox