Input: tegra-kbc - tighten locking
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Sep 2011 16:24:20 +0000 (09:24 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Sep 2011 16:25:50 +0000 (09:25 -0700)
commit95439cbad134de58d9ea256e37fd13fbcdc87d08
tree258e1670f91558404c94fe07d062166cc88fc9f1
parentd0d150ec28ab05eb2ec8cf9fcb7c9753ec95e0d4
Input: tegra-kbc - tighten locking

Take spinlock when entering ISR and timer routine to ensure that we do not
race while enabling/disabling FIFO interrupts.

Also we do not need to take teh spinlock in tegra_kbc_startremove() since
interrupt is completely disabled.

Tested-by: Rakesh Iyer <riyer@nvidia.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/tegra-kbc.c