All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Onkalo Samu <samu.p.onkalo@nokia.com>
Cc: linux-input@vger.kernel.org
Subject: Re: Poll rate change and closing indication to polled input device
Date: Fri, 9 Oct 2009 13:12:02 +0100	[thread overview]
Message-ID: <20091009121201.GE5082@sirena.org.uk> (raw)
In-Reply-To: <1255089779.28243.24.camel@4fid08082>

On Fri, Oct 09, 2009 at 03:02:59PM +0300, Onkalo Samu wrote:

> I would like to change the polling rate of the polled input device
> on the fly depending on the use case. One possible way is to directly
> modify poll_interval from my driver. However, I would like to introduce
> functions which can be used to set / get polling rate like 

> input_polled_device_set_rate(...)

> input_polled_device_get_rate(...)

> Another missing thing is an indication when the polled device is closed.
> This can be used to turn off the HW which is not used anymore.

> What do you think, is it ok to introduce these additions to the polled
> input device?

It'd be really good to have this control exposed to user space in a
standard fashion.  Other devices that generate constant data rates like
touchscreens could also benefit from it, changing their output rate
depending on the needs of user space to give a power saving.

  reply	other threads:[~2009-10-09 12:12 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-09 12:02 Poll rate change and closing indication to polled input device Onkalo Samu
2009-10-09 12:12 ` Mark Brown [this message]
2009-10-09 16:27   ` Dmitry Torokhov
2009-10-09 18:10     ` Mark Brown
2009-10-13  1:08       ` Dmitry Torokhov
2009-10-13  9:19         ` Mark Brown

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=20091009121201.GE5082@sirena.org.uk \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-input@vger.kernel.org \
    --cc=samu.p.onkalo@nokia.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.