Input: imx_keypad - reset the hardware before enabling
authorMichael Grzeschik <m.grzeschik@pengutronix.de>
Wed, 22 Aug 2012 04:57:15 +0000 (21:57 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 22 Aug 2012 05:03:09 +0000 (22:03 -0700)
commitf35dd69ba341bda3790713b9e964483934b995e1
tree428de3b160d6afbb7f1ca154b1c6f212740bf154
parenta1d0fa776870aeda5eb91b131d0f1aede6d94ef1
Input: imx_keypad - reset the hardware before enabling

Ensure the hardware is correctly initialized before requesting the
interrupt, otherwise if a key was already touched since power-on the
kernel enters an interrupt loop. To fix this issue we clear pending
interrupt sources. We also have to make sure clk is enabled while
changing the keypad registers.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/imx_keypad.c