linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: Jiri Slaby <jirislaby@gmail.com>
Cc: ek9852@gmail.com, anti.sullin@artecdesign.ee,
	david-b@pacbell.net, dtor@mail.ru, hvr@gnu.org,
	linux-input@vger.kernel.org, Jiri Kosina <jkosina@suse.cz>
Subject: Re: + input-add-debouncing-for-generic-gpio-input-device-gpio_keyc.patch added to -mm tree
Date: Mon, 3 Mar 2008 15:10:08 -0800	[thread overview]
Message-ID: <20080303151008.3efdc9d6.akpm@linux-foundation.org> (raw)
In-Reply-To: <47CC81FD.2050905@gmail.com>

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.

           reply	other threads:[~2008-03-03 23:10 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <47CC81FD.2050905@gmail.com>]

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=20080303151008.3efdc9d6.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=anti.sullin@artecdesign.ee \
    --cc=david-b@pacbell.net \
    --cc=dtor@mail.ru \
    --cc=ek9852@gmail.com \
    --cc=hvr@gnu.org \
    --cc=jirislaby@gmail.com \
    --cc=jkosina@suse.cz \
    --cc=linux-input@vger.kernel.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).