linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Onkalo Samu <samu.p.onkalo@nokia.com>
To: ext Sundar R IYER <sundar.iyer@stericsson.com>
Cc: Trilok Soni <tsoni@codeaurora.org>,
	Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Naveen Kumar GADDIPATI <naveen.gaddipati@stericsson.com>,
	Linus WALLEIJ <linus.walleij@stericsson.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	Jayeeta BANDYOPADHYAY <jayeeta.banerjee@stericsson.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	"linux-pm@lists.osdl.org" <linux-pm@lists.osdl.org>
Subject: RE: [RFC] input: syfs switches for SKE keypad
Date: Wed, 06 Oct 2010 12:48:38 +0300	[thread overview]
Message-ID: <1286358518.26914.23.camel@4fid08082> (raw)
In-Reply-To: <33A307AF30D7BF4F811B1568FE7A9B180461062FE6@EXDCVYMBSTM006.EQ1STM.local>

On Wed, 2010-10-06 at 10:56 +0200, ext Sundar R IYER wrote:
> Hi,
> 
> >-----Original Message-----
> >From: Trilok Soni [mailto:tsoni@codeaurora.org]
> >Sent: Wednesday, October 06, 2010 2:02 PM
> >
> >I agree with Dmitry. Meego people or you should explain the real end-to-end
> >usecase first. Why it can't fit anywhere else?
> 
> I don't know the full details; but what I can think of (or did I read it somewhere?)
> is events like phones with slider keypad; you can power save keypad controller
> when the keypad is not active. And these events are probably issued from the user
> space to the kernel and that's why the requirement probably. And I do remember
> Samu mentioning about unwanted wakeup events which were avoided via these switches.
> 
> Adding Samu who can explain more on this.

This is how I see this issue

I tried to push enable / disable entries to generic input layer to avoid
driver specific controls. That was not accepted.

The need for keypad locking is not following any global PM transition.
In phones (like N900), global suspend / resume is not used at all. Phone
is running all the time. For example phone must be able to handle
incoming calls all the time. Instead suspend / resume, system is in deep
idle state as much as possible. Wake up from that takes couple of
milliseconds and everything is running again. Powers, clocks and any
extra activity must be turned off when ever possile depending on the
overall system state.

For input devices this means that keypad, touch controller etc. are
turned off or partially disabled for example when the screen is blanked.
Meanwhile system may still have other activity ongoing like mp3
playback. When the screen is off, there must be some way to tell to
touch controller that please turn off and save some power. This not
following pm transitions. On the other hand, disable entry may trig
pm_runtime suspend transifion for that device.

For mobile devices it is not acceptable to filter events away at some
upper SW layer depending on the system state. The HW which generates
those events may not generate events at all to allow longer CPU sleep
periods.

In ideal world it would be nice to control device states based on for
example user count. However, there are several listeners for input
devices and it is hard or impossible to have them all to follow overall
state transition (screen blanked etc.). Instead, there is some system
state controller in the userspace who is responsible to get all the HW
in the correct state. Separate disable / enable entries makes life much
easier.

Hopefully this clears out our point of view.

Regards,
Samu

> 
> >We should not fill in features very specific to userspace frameworks. I see lately
> >lot of Android and Meego specific bits into TS and Keypad drivers from many
> >folks.
> >
> 
> Yeah. IMO it is because people want to mainline and push out all drivers more and more;
> And as of today most of these drivers and HW are tested and delivered on such frameworks :)
> 
> Regards,
> Sundar
> 
> 


  reply	other threads:[~2010-10-06  9:49 UTC|newest]

Thread overview: 55+ 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 [this message]
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 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-11 15:56                                       ` Alan Stern
2010-10-11 22:33                                         ` Rafael J. Wysocki
2010-10-12  0:08                                           ` Alan Stern
2010-10-12 18:46                                             ` Rafael J. Wysocki
2010-10-11  3:16                                     ` 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 21:54                                               ` Alan Stern
2010-10-11 22:08                                                 ` Dmitry Torokhov
2010-10-12  7:25                                                   ` 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 16:32                                                       ` Sundar R IYER
2010-10-12 17:49                                                       ` Mark Brown
2010-10-12 18:27                                                         ` Alan Stern
2010-10-12 18:30                                                           ` Mark Brown
2010-10-13  6:16                                                           ` 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:37                                                                   ` Alan Stern
2010-10-13 17:42                                                                     ` Sundar
2010-10-13 18:00                                                                       ` Sundar
2010-10-13 20:26                                                                         ` 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-13  7:11         ` 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=1286358518.26914.23.camel@4fid08082 \
    --to=samu.p.onkalo@nokia.com \
    --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.osdl.org \
    --cc=naveen.gaddipati@stericsson.com \
    --cc=rjw@sisk.pl \
    --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;
as well as URLs for NNTP newsgroup(s).