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: Wakeup settings for USB hubs?
Date: Thu, 5 Jul 2007 22:40:05 +0200 [thread overview]
Message-ID: <200707052240.05950.oliver@neukum.org> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0707051546010.4198-100000@iolanthe.rowland.org>
Am Donnerstag, 5. Juli 2007 schrieb Alan Stern:
> On Thu, 5 Jul 2007, Oliver Neukum wrote:
>
> > Am Donnerstag, 5. Juli 2007 schrieb Alan Stern:
> > > Allow me to rephrase. You seem to be saying that /sys/.../power/wakeup
> > > should be able to hold four different values:
> > >
> > > 1. always disabled
> > > 2. always enabled
> > > 3. enabled at runtime but not during system sleep
> > > 4. enabled during system sleep but not at runtime
> > >
> > > Right? With the default being 3 (except for a few things like the
> > > power button).
> > >
> > > Or maybe there should be two attribute files: wakeup (used during
> > > system sleep) and wakeup_runtime (used for runtime suspend).
> > >
> > > Comments from anybody else?
> >
> > I am not sure we ever want to do runtime suspend without remote wakeup.
>
> You mean the user shouldn't be able to disable remote wakeup during a
> runtime suspend? But what if the user wants to put the device to sleep
> with no possibility of wakeup?
Then the user will have to force suspend anyway and we can use the existing
attribute. Two points:
1. For hubs I don't think we should allow it
2. The important distinction is not between system wide vs. device,
but between forced sleep and the "best effort" runtime suspension
in style of autosuspend. The latter needs remote wakeup under control
of the driver.
Regards
Oliver
next prev parent reply other threads:[~2007-07-05 20:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 18:43 Wakeup settings for USB hubs? Alan Stern
2007-07-05 7:20 ` Oliver Neukum
2007-07-05 10:28 ` Zhang Rui
2007-07-05 15:01 ` Alan Stern
2007-07-05 15:33 ` Rafael J. Wysocki
2007-07-05 19:18 ` Oliver Neukum
2007-07-05 19:51 ` Alan Stern
2007-07-05 20:40 ` Oliver Neukum [this message]
2007-07-05 21:03 ` Alan Stern
2007-07-05 21:30 ` David Brownell
2007-07-18 10:58 ` Zhang Rui
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=200707052240.05950.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