linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Mike Frysinger <vapier@gentoo.org>
Cc: Gabor Juhos <juhosg@openwrt.org>,
	Ralf Baechle <ralf@linux-mips.org>,
	kaloz@openwrt.org, linux-input@vger.kernel.org,
	michael.hennerich@analog.com, vapier.adi@gmail.com
Subject: Re: [RFC 09/18] input: add input driver for polled GPIO buttons
Date: Fri, 12 Nov 2010 22:04:01 -0800	[thread overview]
Message-ID: <20101113060401.GA1919@core.coreip.homeip.net> (raw)
In-Reply-To: <201011122015.01709.vapier@gentoo.org>

On Fri, Nov 12, 2010 at 08:14:59PM -0500, Mike Frysinger wrote:
> On Friday, November 12, 2010 14:50:36 Gabor Juhos wrote:
> > The existing gpio-keys driver can be usable only for GPIO lines with
> > interrupt support. Several devices have buttons connected to a GPIO
> > line which is not capable to generate interrupts. This patch adds a
> > new input driver using the generic GPIO layer and the input-polldev
> > to support such buttons.
> 
> i havent looked at the two drivers to compare, but my gut reaction is "do we 
> really need two drivers" ?  cant the existing one be extended to support both 
> types ? 

I actually like it being separate. All previous attempts to combine
interrupt-driven and polled devices complicated the drivers and had
driver picking in the guts of the polled device implementation.

> conceivably, you could have a device with both sources and a sep 
> driver would mean user space needs to watch two different devices.

This is unlikely, however userspace usually watches a few devices
anyway, nothing new here.

>  and it 
> implicitly means userspace needs to be aware of interrupt vs polled 
> limitations of the hardware instead of it simply caring about GPIOs.

No, as long as userspace simply listens to all devices whose
capabilities they are interested in they will be fine.

-- 
Dmitry

  reply	other threads:[~2010-11-13  6:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1289591445-28842-1-git-send-email-juhosg@openwrt.org>
2010-11-12 19:50 ` [RFC 09/18] input: add input driver for polled GPIO buttons Gabor Juhos
2010-11-13  1:14   ` Mike Frysinger
2010-11-13  6:04     ` Dmitry Torokhov [this message]
     [not found] <1289598684-30624-1-git-send-email-juhosg@openwrt.org>
2010-11-12 21:51 ` Gabor Juhos

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=20101113060401.GA1919@core.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=juhosg@openwrt.org \
    --cc=kaloz@openwrt.org \
    --cc=linux-input@vger.kernel.org \
    --cc=michael.hennerich@analog.com \
    --cc=ralf@linux-mips.org \
    --cc=vapier.adi@gmail.com \
    --cc=vapier@gentoo.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).