From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Trilok Soni <tsoni@codeaurora.org>,
samu.p.onkalo@nokia.com,
Linus WALLEIJ <linus.walleij@stericsson.com>,
Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>,
"linux-pm@lists.osdl.org" <linux-pm@lists.osdl.org>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
Jayeeta BANDYOPADHYAY <jayeeta.banerjee@stericsson.com>,
ext Sundar R IYER <sundar.iyer@stericsson.com>
Subject: Re: [linux-pm] [RFC] input: syfs switches for SKE keypad
Date: Wed, 6 Oct 2010 11:26:47 -0700 [thread overview]
Message-ID: <20101006182647.GA5794@core.coreip.homeip.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1010061417410.2047-100000@iolanthe.rowland.org>
On Wed, Oct 06, 2010 at 02:19:03PM -0400, Alan Stern wrote:
> On Wed, 6 Oct 2010, Dmitry Torokhov wrote:
>
> > > > I think last time Rafael mentioned that runtime PM did not allow for
> > > > forcing power state from userspace but I wonder if it would be possible
> > > > for userspace to signal and "accelerate" the idle state for a device and
> > > > then standard runtime PM framework would kick in...
> > >
> > > Yes; drivers can implement their runtime power policy any way they
> > > want. For example, a driver could create a sysfs attribute file which
> > > userspace could use to ask for changes in the power state.
> > >
> > > The real question is whether the driver is platform-specific. If it is
> > > then fine, it can do whatever it wants. If it isn't then it should
> > > try to avoid doing things that are tied to a specific platform.
> > >
> >
> > No, I really think it is wrong. This what leads us to the situation we
> > are in at the moment. Every device [re]implements its own little knobs
> > to do power management. Accelerometers export their (often tailored to a
> > specific platform) attributes in sysfs in nonstandard way. And so on,
> > and so forth.
> >
> > Here I'd like to see these (PM) hooks done on device core level, i.e.
> > the knobs should be unified and live in /sys/devices/.../deviceX/power/
>
> I haven't followed this thread in detail. What sort of knobs are you
> talking about? That is, what needs to be done? Maybe the PM core
> already provides these features.
>
Mobile folks wish to power down some devices (most often input -
touchscreen, keypad) under certain circumstances to save power.
So far they were doing that by adding "disable" hook to individual
drivers and while I did allow that in for some devices I feel that we
need more standardised solution, preferably one that could re-use
existing PM hooks in drivers.
--
Dmitry
next prev parent reply other threads:[~2010-10-06 18:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <33A307AF30D7BF4F811B1568FE7A9B180460D32FE2@EXDCVYMBSTM006.EQ1STM.local>
2010-10-05 17:41 ` [RFC] input: syfs switches for SKE keypad Dmitry Torokhov
2010-10-06 8:32 ` Trilok Soni
2010-10-06 8:56 ` Sundar R IYER
2010-10-06 9:48 ` Onkalo Samu
2010-10-06 11:41 ` Trilok Soni
2010-10-06 11:58 ` Sundar R IYER
2010-10-06 15:43 ` Dmitry Torokhov
2010-10-06 16:19 ` [linux-pm] " Alan Stern
2010-10-06 17:18 ` Dmitry Torokhov
2010-10-06 18:19 ` Alan Stern
2010-10-06 18:26 ` Dmitry Torokhov [this message]
2010-10-06 18:51 ` Alan Stern
2010-10-06 19:08 ` Rafael J. Wysocki
2010-10-13 7:11 ` [linux-pm] " Pavel Machek
2010-10-13 17:35 ` Ferenc Wagner
2010-10-13 19:20 ` [linux-pm] " Pavel Machek
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=20101006182647.GA5794@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=jayeeta.banerjee@stericsson.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-pm@lists.osdl.org \
--cc=naveen.gaddipati@stericsson.com \
--cc=samu.p.onkalo@nokia.com \
--cc=stern@rowland.harvard.edu \
--cc=sundar.iyer@stericsson.com \
--cc=tsoni@codeaurora.org \
/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