projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b216e12
)
Input: pxa27x_keypad - clear pending interrupts on keypad config
author
Vasily Khoruzhick
<
[email protected]
>
Tue, 30 Oct 2012 06:45:09 +0000
(23:45 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Tue, 30 Oct 2012 07:10:49 +0000
(
00:10
-0700)
Bootloader can leave interrupt bit pending, and it confuses driver.
Signed-off-by: Vasily Khoruzhick <
[email protected]
>
Acked-by: Robert Jarzmik <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/pxa27x_keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/pxa27x_keypad.c
b/drivers/input/keyboard/pxa27x_keypad.c
index 803ff6fe021ec001393a5a9844dd825cbcb6235d..cad9d5dd597330b2eaa523b046f33edddb3641bb 100644
(file)
--- a/
drivers/input/keyboard/pxa27x_keypad.c
+++ b/
drivers/input/keyboard/pxa27x_keypad.c
@@
-368,6
+368,9
@@
static void pxa27x_keypad_config(struct pxa27x_keypad *keypad)
unsigned int mask = 0, direct_key_num = 0;
unsigned long kpc = 0;
+ /* clear pending interrupt bit */
+ keypad_readl(KPC);
+
/* enable matrix keys with automatic scan */
if (pdata->matrix_key_rows && pdata->matrix_key_cols) {
kpc |= KPC_ASACT | KPC_MIE | KPC_ME | KPC_MS_ALL;