Input: export input_reset_device() for use in KGDB
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Nov 2010 18:02:31 +0000 (11:02 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 3 Nov 2010 18:04:46 +0000 (11:04 -0700)
commitb50b521694cb7093640879d3279b88d2873f6183
treec797834c252a2adfb3828ce4dfc91f4b49024bb8
parent95716c0decb2ed3ff94998b6390cc8f8d6d1e748
Input: export input_reset_device() for use in KGDB

KGDB, much like the resume process, needs to be able to mark all keys that
were pressed at the time we dropped into the debuggers as "released", since
it is unlikely that the keys stay pressed for the entire duration of the
debug session.

Also we need to make sure that input_reset_device() and input_dev_suspend()
only attempt to change state of currenlt opened devices since closed devices
may not be ready to accept IO requests.

Tested-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c
include/linux/input.h