]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Input: serio - add fast reconnect option
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 3 Mar 2017 19:47:40 +0000 (11:47 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 25 Mar 2017 17:37:26 +0000 (10:37 -0700)
commit5ea1320653359dd2ade7ff2ad81e37b790eb1f1f
tree7740530f6ba6f258c79e41e869d0e62b52840a9d
parent996b9eedd061752bfa0f3a10381515d67db26b3e
Input: serio - add fast reconnect option

Devices connected to serio bus are quite slow, and to improve apparent
speed of resume process, serio core resumes (reconnects) its devices
asynchronously, by posting port reconnect requests to a workqueue.
Unfortunately this means that if there is a dependent device of a given
serio port (for example SMBus part of touchpad connected via both PS/2 and
SMBus), we do not have a good way of ensuring resume order.

This change allows drivers to define "fast reconnect" handlers that would
be called in-line during system resume. Drivers need to ensure that these
handlers are truly "fast".

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/serio/serio.c
include/linux/serio.h