linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: linux-acpi@vger.kernel.org
Subject: Wakeup and S states
Date: Wed, 15 Jun 2011 11:12:03 -0400	[thread overview]
Message-ID: <4DF8CBC3.5070801@cfl.rr.com> (raw)

It looks like the PM core has an all or nothing concept of whether a 
device can and should wake the system, but in ACPI, the answer to these 
depends on what S state you are talking about.  If you look at 
/proc/acpi/wakeup, it lists the lowest S state each device is capable of 
waking the system in, but device_can_wakeup() appears to just check an 
all or nothing flag, rather than consider what S state we may be 
transitioning to.  If a device is capable of wakeup from S3, but we are 
going to S4, then won't device_can_wakeup() return true, and thus, the 
driver will mistakenly try to enable wakeup when hibernating?

Conversely, if an ethernet controller is capable of waking up the system 
from S5, that does not mean we want it left powered on and capable of 
doing so when we shut the machine off, but had WOL enabled.  Is there no 
way to enable wakeup only from S3, even though the device is capable of 
lower levels?

             reply	other threads:[~2011-06-15 15:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-15 15:12 Phillip Susi [this message]
2011-06-15 15:44 ` Wakeup and S states Matthew Garrett
2011-06-16 13:48   ` Phillip Susi
2011-06-16 14:15     ` Matthew Garrett
2011-06-16 14:32       ` Phillip Susi
2011-06-16 14:37         ` Matthew Garrett
2011-06-16 15:11           ` Phillip Susi

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=4DF8CBC3.5070801@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=linux-acpi@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).