]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerJiri Slaby <jslaby@suse.cz>
Tue, 26 May 2015 14:26:57 +0000 (16:26 +0200)
commit8452773259cd552c289fa422209bcc12d59270e6
treeb73b54d665e74b5078015b01845dec44bddd59ce
parent58afd668e242b6af089940d1b85eeb2be59fa691
Input: cros_ec_keyb - fix clearing keyboard state on wakeup

commit ef30a406468a3eae007210ae0dc5ed8d5eb59b7d upstream.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/keyboard/cros_ec_keyb.c