]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: nomadik-ske-keypad - get rid of multiple interrupts
authorNaveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Mon, 25 Jun 2012 07:34:36 +0000 (00:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 25 Jun 2012 07:45:15 +0000 (00:45 -0700)
commit84b63ad8477c822edbeb1e310b201609f33522ec
tree119dbc19dbb993c8156e6972791411c1c015cc9e
parentaf77c88b8971232f23b4cba7a46fc7a43914bf22
Input: nomadik-ske-keypad - get rid of multiple interrupts

The keypad could cause multiple interrupts to be fired in succession
since we weren't waiting for the IRQs to clear properly in the
interrupt handler. We wait for a number of bus iterations (the
readl():s from the peripheral bus will stall, so these are quite
long) before giving up on getting keys ready to read, then we
sleep until the IRQ is deasserted (this is OK since the interrupt
is threaded). Also use the debounce platform data for another
hardcoded wait loop.

Signed-off-by: Naveen Kumar Gaddipati <naveen.gaddipati@stericsson.com>
Reviewed-by: Rikard Olsson <rikard.p.olsson@stericsson.com>
Reviewed-by: Srinidhi Kasagar <srinidhi.kasagar@stericsson.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/nomadik-ske-keypad.c