linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: + input-add-debouncing-for-generic-gpio-input-device-gpio_keyc.patch added to -mm tree
       [not found] ` <47CC81FD.2050905@gmail.com>
@ 2008-03-03 23:10   ` Andrew Morton
  0 siblings, 0 replies; only message in thread
From: Andrew Morton @ 2008-03-03 23:10 UTC (permalink / raw)
  To: Jiri Slaby
  Cc: ek9852, anti.sullin, david-b, dtor, hvr, linux-input, Jiri Kosina

On Mon, 03 Mar 2008 23:55:57 +0100
Jiri Slaby <jirislaby@gmail.com> wrote:

> On 03/03/2008 11:30 PM, akpm@linux-foundation.org wrote:
> > Subject: input: add debouncing for generic gpio input device gpio_key.c
> > From: Keith Mok <ek9852@gmail.com>
> > 
> > Add debouncing support for the generic gpio input device, since debouncing is
> > most likely to happen.
> > 
> > Signed-off-by: Keith Mok <ek9852@gmail.com>
> > Cc: Herbert Valerio Riedel <hvr@gnu.org>
> > Cc: Dmitry Torokhov <dtor@mail.ru>
> > Cc: Jiri Slaby <jirislaby@gmail.com>
> > Cc: Anti Sullin <anti.sullin@artecdesign.ee>
> > Cc: David Brownell <david-b@pacbell.net>
> > Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> > ---
> > 
> >  drivers/input/keyboard/gpio_keys.c |  106 +++++++++++++++++++++++----
> >  1 file changed, 93 insertions(+), 13 deletions(-)
> > 
> > diff -puN drivers/input/keyboard/gpio_keys.c~input-add-debouncing-for-generic-gpio-input-device-gpio_keyc drivers/input/keyboard/gpio_keys.c
> > --- a/drivers/input/keyboard/gpio_keys.c~input-add-debouncing-for-generic-gpio-input-device-gpio_keyc
> > +++ a/drivers/input/keyboard/gpio_keys.c
> [...]
> >  static irqreturn_t gpio_keys_isr(int irq, void *dev_id)
> [...]
> > +	/* disable keyboard interrupt and schedule for handling */
> > +	for (i = 0; i < pdata->nbuttons; i++) {
> > +		int irq = gpio_to_irq(pdata->buttons[i].gpio);
> > +		disable_irq(irq);
> 
> Are you 100% sure here (are you disabling irqs other than this one)? No 
> disable_irq_nosync? Anyway why is the disabling needed at all?
> 

lol, I cc'ed the wrong Jiri and it worked out well.

Please do cc the appropriate mailing list when replying to -mm commit
emails.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-03-03 23:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200803032230.m23MUgas010098@imap1.linux-foundation.org>
     [not found] ` <47CC81FD.2050905@gmail.com>
2008-03-03 23:10   ` + input-add-debouncing-for-generic-gpio-input-device-gpio_keyc.patch added to -mm tree Andrew Morton

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).