Input: tegra-kbc - fix wakeup from suspend
authorRakesh Iyer <riyer@nvidia.com>
Thu, 8 Sep 2011 22:34:11 +0000 (15:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Sep 2011 16:25:42 +0000 (09:25 -0700)
commitd0d150ec28ab05eb2ec8cf9fcb7c9753ec95e0d4
tree9031f750dadb8f8ba82190295755dde351c8ddc0
parent9299c08d8bfc7256645f4bf3943f80d8943fe844
Input: tegra-kbc - fix wakeup from suspend

For wakeup to be reliable, kbc needs to be in interrupt mode before suspend.
Created common routine to control the FIFO interrupt.
Added synchronization to ensure orderly suspend.

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