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

Rafael J. Wysocki
2010-10-14T19:00:58Z

On Thursday, October 14, 2010, Alan Stern wrote:
> On Wed, 13 Oct 2010, Rafael J. Wysocki wrote:
>
> > On Wednesday, October 13, 2010, Sundar wrote:
> > > On Wed, Oct 13, 2010 at 11:12 PM, Sundar <sunder.svit@gmail.com> wrote:
> > > > On Wed, Oct 13, 2010 at 11:07 PM, Alan Stern <stern@rowland.harvard.edu> wrote:
> > > >>
> > > >> Sorry, I don't quite understand your question. I think it would be
> > > >> okay to add an interface for userspace to cut short a runtime-suspend
> > > >> delay, but I don't think anything more is needed.
> >
> > I'm not 100% sure how that interface is supposed to work. Can you elaborate
> > a bit, please?
>
> There could be a new attribute file, or we could use a blank line
> written to autosuspend_delay_ms for this purpose. Either way, the
> result would be to call pm_runtime_suspend. If the device is idle,
> merely awaiting the timer expiration for a scheduled suspend or
> autosuspend, this would cause it to suspend immediately.

That sounds reasonable.

I wonder what the interested people think about it.

Thanks,
Rafael