public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: System sleep vs. runtime PM
Date: Thu, 3 Dec 2009 21:11:30 +0100	[thread overview]
Message-ID: <200912032111.30921.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0912031444300.4795-100000@iolanthe.rowland.org>

Am Donnerstag, 3. Dezember 2009 20:52:15 schrieb Alan Stern:

> That's not necessarily so.  If remote wakeup is disabled at a device
> between the CPU and the source device, then wakeup events are indeed
> allowed to get lost.  For example, even though a USB hub may be enabled
> for remote wakeup, if its host controller isn't then a wakeup event
> won't generate an IRQ and so won't awaken the system.  And in fact this
> behavior may be desired by the user.  After all, who would want their
> laptop to wake up merely because a USB mouse was unplugged?

That is no problem while the system is asleep. It is no good once the system
wakes up.

> >  But the core doesn't
> > know specifics. Unless you really want to overengineer this and compute
> > the reliability of each path, resuming only those whose drivers have
> > requested that remote wakeup be enabled is the best you can do.
> 
> Isn't that what I agreed drivers should do?

If the algorithm is clear and based only on remote wakeup, why
would you want to involve drivers?

I am afraid we are having a misunderstanding. Could you elaborate?

	Regards
		Oliver

  reply	other threads:[~2009-12-03 20:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 18:35 System sleep vs. runtime PM Alan Stern
2009-12-02 21:16 ` Oliver Neukum
2009-12-02 22:20   ` Alan Stern
2009-12-02 23:02     ` Oliver Neukum
2009-12-03  0:19       ` Rafael J. Wysocki
2009-12-03 16:53         ` Alan Stern
2009-12-03 15:25       ` Alan Stern
2009-12-03 17:13         ` Oliver Neukum
2009-12-03 17:50           ` Alan Stern
2009-12-03 19:34             ` Oliver Neukum
2009-12-03 19:52               ` Alan Stern
2009-12-03 20:11                 ` Oliver Neukum [this message]
2009-12-03 20:33                   ` Alan Stern
  -- strict thread matches above, loose matches on Subject: below --
2009-12-12 15:37 Alan Stern
2009-12-12 17:33 ` Rafael J. Wysocki
2009-12-12 19:22   ` Alan Stern
2009-12-12 22:45     ` Rafael J. Wysocki

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=200912032111.30921.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=stern@rowland.harvard.edu \
    /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