From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: linux-pm@lists.linux-foundation.org
Subject: Re: [PATCH] PM: runtime: add missed pm_request_autosuspend
Date: Wed, 29 Sep 2010 00:14:42 +0200 [thread overview]
Message-ID: <201009290014.42718.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1009271038410.1751-100000@iolanthe.rowland.org>
On Monday, September 27, 2010, Alan Stern wrote:
> On Mon, 27 Sep 2010, Ming Lei wrote:
>
> > 2010/9/27 Alan Stern <stern@rowland.harvard.edu>:
> > > On Mon, 27 Sep 2010 tom.leiming@gmail.com wrote:
> > >
> > >> From: Ming Lei <tom.leiming@gmail.com>
> > >>
> > >> Commit 5789bdd542c6bfbb662915c67bffc14198aa5dda
> > >> [PM / Runtime: Implement autosuspend support] introduces
> > >> "autosuspend" facility for runtime PM, but misses
> > >> helper function of pm_request_autosuspend, so add it.
> > >
> > > I didn't add the helper function because I couldn't think of any
> > > places where it would be needed. Do you have an example?
> >
> > I add the helper function since there are the function descriptions
> > more than more in the documentation file of runtime_pm.txt, so I
> > think it is missed.
> >
> > >
> > >> --- a/include/linux/pm_runtime.h
> > >> +++ b/include/linux/pm_runtime.h
> > >> @@ -164,6 +164,11 @@ static inline int pm_request_resume(struct device *dev)
> > >> return __pm_runtime_resume(dev, RPM_ASYNC);
> > >> }
> > >>
> > >> +static inline int pm_request_autosuspend(struct device *dev)
> > >> +{
> > >> + return __pm_runtime_suspend(dev, RPM_ASYNC | RPM_AUTO);
> > >> +}
> > >> +
> > >> static inline int pm_runtime_get(struct device *dev)
> > >> {
> > >> return __pm_runtime_resume(dev, RPM_GET_PUT | RPM_ASYNC);
> > >>
> > >
> > > This isn't good enough. If you provide the function then you have to
> > > update the documentation file too.
> >
> > You have updated the documentation file already in your patch, :-)
>
> Oops! You're right. My mistake, I apologize. Guess I changed my mind
> about it and then forgot partway through. :-)
>
> Yes, the function should be added.
I applied the patch to suspend-2.6/linux-next.
Thanks,
Rafael
prev parent reply other threads:[~2010-09-28 22:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-27 10:54 [PATCH] PM: runtime: add missed pm_request_autosuspend tom.leiming
2010-09-27 13:54 ` Alan Stern
2010-09-27 14:28 ` Ming Lei
2010-09-27 14:41 ` Alan Stern
2010-09-28 22:14 ` 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=201009290014.42718.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