From: Greg KH <greg@kroah.com>
To: Michael Trimarchi <trimarchi@gandalf.sssup.it>
Cc: len.brown@intel.com, linux-pm@lists.linux-foundation.org, pavel@suse.cz
Subject: Re: [RFC Add in_use attribute] Let the driver know if it's in use
Date: Mon, 20 Apr 2009 23:17:54 -0700 [thread overview]
Message-ID: <20090421061754.GA20726@kroah.com> (raw)
In-Reply-To: <49ED54DC.6040407@gandalf.sssup.it>
On Tue, Apr 21, 2009 at 07:08:44AM +0200, Michael Trimarchi wrote:
> Hi,
>
> Greg KH wrote:
> > On Mon, Apr 20, 2009 at 11:54:04PM +0200, Rafael J. Wysocki wrote:
> >
> >> On Thursday 16 April 2009, Michael Trimarchi wrote:
> >>
> >>> Drivers on embedded systems would be smart enough
> >>> to know that some of the devices should remain powered up, because
> >>> they could still be useful even when the CPU wasn't running.
> >>> The patch add the in_use attribute, that it can be used by the
> >>> the drivers to avoid power down during suspend.
> >>>
> >> OK, so the idea is that in_use will be set by the user space for devices that
> >> shouldn't be suspended. Is this correct?
> >>
> >
> > If so, why? Why would you suspend anything then? Why not just have
> > userspace suspend the devices it wants to suspend and leave the ones it
> > thinks is "in_use" alone?
> >
> >
> Because it the previus thread the idea is that the driver should use
> this flag
>
> "[linux-pm] [RFC Disable suspend on a
> specific device] This is a little change in linux power scheme".
I wasn't involved in that thread, and am not on linux-pm, care to
summarize why this change is now recommended?
> > Exactly, what are you trying to do that differs from
> > device_for_each_child()?
> >
> Is device for each child use to visist the first level of the tree?
Have you tried it?
thanks,
greg k-h
next prev parent reply other threads:[~2009-04-21 6:17 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 13:13 [RFC Add in_use attribute] Let the driver know if it's in use Michael Trimarchi
2009-04-20 9:09 ` Michael Trimarchi
2009-04-20 21:54 ` Rafael J. Wysocki
2009-04-20 22:11 ` Alan Stern
2009-04-20 22:15 ` Greg KH
2009-04-21 18:33 ` Rafael J. Wysocki
2009-04-21 21:55 ` Greg KH
2009-04-21 5:17 ` Michael Trimarchi
2009-04-21 18:30 ` Rafael J. Wysocki
2009-04-20 22:45 ` Greg KH
2009-04-21 5:08 ` Michael Trimarchi
2009-04-21 6:17 ` Greg KH [this message]
2009-04-21 6:43 ` Michael Trimarchi
2009-04-21 21:56 ` Greg KH
2009-04-23 8:47 ` Michael Trimarchi
2009-04-23 14:59 ` Rafael J. Wysocki
2009-04-23 16:49 ` Michael Trimarchi
2009-04-23 21:41 ` Rafael J. Wysocki
2009-04-21 5:01 ` Michael Trimarchi
2009-04-21 18:46 ` Rafael J. Wysocki
2009-04-23 6:01 ` Michael Trimarchi
2009-04-23 6:11 ` Michael Trimarchi
2009-04-23 14:56 ` 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=20090421061754.GA20726@kroah.com \
--to=greg@kroah.com \
--cc=len.brown@intel.com \
--cc=linux-pm@lists.linux-foundation.org \
--cc=pavel@suse.cz \
--cc=trimarchi@gandalf.sssup.it \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.