Re: [RFC] input: syfs switches for SKE keypad

Alan Stern
2010-10-12T18:27:21Z

On Tue, 12 Oct 2010, Mark Brown wrote:

> On Tue, Oct 12, 2010 at 11:34:18AM -0400, Alan Stern wrote:
>
> > Of course, if the device is idle then it's natural to ask why it isn't
> > already in low-power mode. Maybe it's waiting for an autosuspend
> > timer to expire; anything else doesn't make much sense.
>
> This isn't *really* about saving power in the individual device; it's
> more about stopping the device generating events that disrupt the rest
> of the system. Suspending the device can be one way of doing that and
> is useful if it can be done but is not really the immediate goal here.

Runtime PM is _not_ a reliable way of preventing a device from
generating events. It is meant for saving energy, nothing else.

If that's what this is about, then the answer is simple: Don't use
runtime PM to try to suppress events.

Alan Stern