]> git.baikalelectronics.ru Git - kernel.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)
commit44fa5313ecd8bac11df52040ee29c5efbe409367
tree7740530f6ba6f258c79e41e869d0e62b52840a9d
parent558b4170508de2796ac87b7204613dcaeb4b2966
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