]> git.baikalelectronics.ru Git - kernel.git/commit
Input: cros_ec_keyb - fix clearing keyboard state on wakeup
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Mon, 6 Apr 2015 16:44:59 +0000 (09:44 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 6 Apr 2015 17:01:20 +0000 (10:01 -0700)
commit91c42e6231377aa508c981c36e66875f29c8b8e4
treea8b7ee66e237ebe80dd3628a1021cf400d061d15
parente2648b1e13903a23b90cfc8c7d74a3eb8e520c8c
Input: cros_ec_keyb - fix clearing keyboard state on wakeup

As the comment right before explains, the keyboard state is to be cleared
only if the EC wasn't a wakeup source in the last suspend.

Without this commit, there's an unneeded delay when resuming from suspend
and we also lose the key that was pressed while suspended.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Reviewed-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/cros_ec_keyb.c