From: "Rafael J. Wysocki" <rjw@sisk.pl>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
samu.p.onkalo@nokia.com,
Linus WALLEIJ <linus.walleij@stericsson.com>,
Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>,
Jayeeta BANDYOPADHYAY <jayeeta.banerjee@stericsson.com>,
ext Sundar R IYER <sundar.iyer@stericsson.com>,
Linux-pm mailing list <linux-pm@lists.linux-foundation.org>
Subject: Re: [linux-pm] [RFC] input: syfs switches for SKE keypad
Date: Mon, 11 Oct 2010 00:24:25 +0200 [thread overview]
Message-ID: <201010110024.25955.rjw@sisk.pl> (raw)
In-Reply-To: <Pine.LNX.4.44L0.1010101700100.30042-100000@netrider.rowland.org>
On Sunday, October 10, 2010, Alan Stern wrote:
> On Sun, 10 Oct 2010, Dmitry Torokhov wrote:
...
> > >
> > > It's up to userspace to make sure that the display's usage count goes
> > > to 0 at the proper time, i.e., when the button is pressed. Contrary to
> > > what you wrote above, we _do_ have an interface for this at the PM core
> > > level: power/control.
I think that power/control is not sufficient, because drivers may generally not
have enough information to make a decision to suspend the device. What you're
saying basically means that for every driver there should be an interface for
user space to tell it when the device is not used (and therefore may be
suspended), which is pretty much what I'm saying. The difference seems to be
that I think it's better to put this interface into /sys/devices/.../power/,
while your opinion seems to be that the interface should be driver-specific.
> >
> > I think that while using power/control is a _very_ good option "auto"
> > and "on" are not enough, we need 3 states: "on", "off" and "auto".
>
> Will the driver use autosuspend for the 30-second delay? Then all you
> have to do is this: When the button is pressed, write 0 to
> power/autosuspend_delay_ms, causing an immediate runtime suspend.
> Then before turning the display back on, write 30000 to set the delay
> to 30 seconds again. You can leave power/control set to "auto" the
> whole time.
>
> I don't like the idea of having an "off" setting in power/control.
> What happens if the user turns a disk drive controller "off" and the
> system needs to read or write something on that disk drive?
That's why I said about a new flag that will only be set by drivers
_knowing_ that they can suspend "on demand".
Thanks,
Rafael
next prev parent reply other threads:[~2010-10-10 22:25 UTC|newest]
Thread overview: 94+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-05 16:54 [RFC] input: syfs switches for SKE keypad Sundar R IYER
2010-10-05 17:41 ` 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
2010-10-06 18:51 ` Alan Stern
2010-10-06 19:08 ` Rafael J. Wysocki
2010-10-06 19:08 ` [linux-pm] " Rafael J. Wysocki
2010-10-06 20:08 ` Alan Stern
2010-10-09 10:52 ` Rafael J. Wysocki
2010-10-09 22:46 ` Alan Stern
2010-10-09 23:02 ` Rafael J. Wysocki
2010-10-10 20:34 ` Alan Stern
2010-10-10 20:51 ` Dmitry Torokhov
2010-10-10 21:09 ` Alan Stern
2010-10-10 22:24 ` Rafael J. Wysocki
2010-10-10 22:24 ` Rafael J. Wysocki [this message]
2010-10-11 15:56 ` [linux-pm] " Alan Stern
2010-10-11 22:33 ` Rafael J. Wysocki
2010-10-12 0:08 ` Alan Stern
2010-10-12 0:08 ` [linux-pm] " Alan Stern
2010-10-12 18:46 ` Rafael J. Wysocki
2010-10-12 18:46 ` Rafael J. Wysocki
2010-10-11 22:33 ` Rafael J. Wysocki
2010-10-11 15:56 ` Alan Stern
2010-10-11 3:16 ` [linux-pm] " Dmitry Torokhov
2010-10-11 16:06 ` Alan Stern
2010-10-11 16:15 ` Dmitry Torokhov
2010-10-11 16:53 ` Alan Stern
2010-10-11 17:07 ` Dmitry Torokhov
2010-10-11 17:07 ` [linux-pm] " Dmitry Torokhov
2010-10-11 21:54 ` Alan Stern
2010-10-11 22:08 ` Dmitry Torokhov
2010-10-11 22:08 ` [linux-pm] " Dmitry Torokhov
2010-10-12 7:25 ` Sundar R IYER
2010-10-12 7:25 ` [linux-pm] " Sundar R IYER
2010-10-12 15:34 ` Alan Stern
2010-10-12 15:53 ` Dmitry Torokhov
2010-10-12 17:45 ` Alan Stern
2010-10-12 17:45 ` Alan Stern
2010-10-12 15:53 ` Dmitry Torokhov
2010-10-12 16:32 ` [linux-pm] " Sundar R IYER
2010-10-12 16:32 ` Sundar R IYER
2010-10-12 17:49 ` [linux-pm] " Mark Brown
2010-10-12 18:27 ` Alan Stern
2010-10-12 18:27 ` [linux-pm] " Alan Stern
2010-10-12 18:30 ` Mark Brown
2010-10-12 18:30 ` Mark Brown
2010-10-13 6:16 ` [linux-pm] " Sundar R IYER
2010-10-13 9:57 ` Mark Brown
2010-10-13 14:10 ` Alan Stern
2010-10-13 17:25 ` Sundar
2010-10-13 17:25 ` [linux-pm] " Sundar
2010-10-13 17:37 ` Alan Stern
2010-10-13 17:42 ` Sundar
2010-10-13 18:00 ` Sundar
2010-10-13 18:00 ` [linux-pm] " Sundar
2010-10-13 20:26 ` Rafael J. Wysocki
2010-10-13 20:26 ` [linux-pm] " Rafael J. Wysocki
2010-10-14 13:50 ` Alan Stern
2010-10-14 19:00 ` Rafael J. Wysocki
2010-10-15 16:04 ` Sundar
2010-10-15 16:04 ` Sundar
2010-10-14 19:00 ` Rafael J. Wysocki
2010-10-14 13:50 ` Alan Stern
2010-10-13 17:42 ` Sundar
2010-10-13 17:37 ` Alan Stern
2010-10-13 14:10 ` Alan Stern
2010-10-13 9:57 ` Mark Brown
2010-10-13 6:16 ` Sundar R IYER
2010-10-12 17:49 ` Mark Brown
2010-10-12 15:34 ` Alan Stern
2010-10-11 21:54 ` Alan Stern
2010-10-11 16:53 ` Alan Stern
2010-10-11 16:15 ` Dmitry Torokhov
2010-10-11 16:06 ` Alan Stern
2010-10-11 3:16 ` Dmitry Torokhov
2010-10-10 21:09 ` Alan Stern
2010-10-10 20:51 ` Dmitry Torokhov
2010-10-10 20:34 ` Alan Stern
2010-10-09 23:02 ` Rafael J. Wysocki
2010-10-09 22:46 ` Alan Stern
2010-10-09 10:52 ` Rafael J. Wysocki
2010-10-06 20:08 ` Alan Stern
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=201010110024.25955.rjw@sisk.pl \
--to=rjw@sisk.pl \
--cc=dmitry.torokhov@gmail.com \
--cc=jayeeta.banerjee@stericsson.com \
--cc=linus.walleij@stericsson.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.org \
--cc=naveen.gaddipati@stericsson.com \
--cc=samu.p.onkalo@nokia.com \
--cc=stern@rowland.harvard.edu \
--cc=sundar.iyer@stericsson.com \
/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.