]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitef30a406468a3eae007210ae0dc5ed8d5eb59b7d
treea8b7ee66e237ebe80dd3628a1021cf400d061d15
parenta54aecbd3ad08f6a5e9546a3602af7d88cc5a613
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