From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: Changes to Runtime PM
Date: Sat, 11 Sep 2010 22:24:22 +0200 [thread overview]
Message-ID: <201009112224.22482.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1009102131210.14441-100000@netrider.rowland.org>
On Saturday, September 11, 2010, Alan Stern wrote:
> On Sat, 11 Sep 2010, Rafael J. Wysocki wrote:
>
> > > > > First check for things that make the function impossible:
> > > > > power.runtime_error set, usage_count or child_count set
> > > > > wrong, or disable_depth > 0. If these checks fail, return
> > > > > immediately.
> > > >
> > > > OK
> > > >
> > > > > Then check the current status and the pending requests to
> > > > > see if they rule out the current function:
> > > > >
> > > > > idle is allowed only in RPM_ACTIVE and when there
> > > > > are no pending requests (but the suspend timer can
> > > > > be running);
> > > > >
> > > > > suspend is not allowed if the status is RPM_SUSPENDED
> > > > > or RPM_RESUMING, or if there is a pending resume
> > > > > (either a request or a deferred resume);
> > > > >
> > > > > resume is not allowed if the status is RPM_ACTIVE.
> > > >
> > > > OK, but that need not apply to the _ldle() variants.
> > >
> > > I don't understand. Are you referring to the "idle is allowed only..."
> > > paragraph above? What's the connection with resume?
> >
> > Sorry, I thought *_request_*() and wrote _idle(). Must be too tired. :-)
>
> I'm still not sure what you mean. I meant those conditions to apply to
> both the synchronous and asynchronous calls (except of course that we
> will allow async suspend if the status is RPM_RESUMING). Did you have
> something else is mind?
No, I didn't.
Thanks,
Rafael
prev parent reply other threads:[~2010-09-11 20:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201009102255.13387.rjw@sisk.pl>
2010-09-10 21:46 ` Changes to Runtime PM Alan Stern
2010-09-10 22:28 ` Rafael J. Wysocki
2010-09-11 1:37 ` Alan Stern
2010-09-11 20:24 ` Rafael J. Wysocki [this message]
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=201009112224.22482.rjw@sisk.pl \
--to=rjw@sisk.pl \
--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