aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/serio.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-03-03 11:47:40 -0800
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2017-03-25 10:37:26 -0700
commit5ea1320653359dd2ade7ff2ad81e37b790eb1f1f (patch)
tree7740530f6ba6f258c79e41e869d0e62b52840a9d /include/linux/serio.h
parentInput: synaptics - do not mix logical and bitwise operations (diff)
downloadlinux-dev-5ea1320653359dd2ade7ff2ad81e37b790eb1f1f.tar.xz
linux-dev-5ea1320653359dd2ade7ff2ad81e37b790eb1f1f.zip
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>
Diffstat (limited to 'include/linux/serio.h')
-rw-r--r--include/linux/serio.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/serio.h b/include/linux/serio.h
index c733cff44e18..138a5efe863a 100644
--- a/include/linux/serio.h
+++ b/include/linux/serio.h
@@ -77,6 +77,7 @@ struct serio_driver {
irqreturn_t (*interrupt)(struct serio *, unsigned char, unsigned int);
int (*connect)(struct serio *, struct serio_driver *drv);
int (*reconnect)(struct serio *);
+ int (*fast_reconnect)(struct serio *);
void (*disconnect)(struct serio *);
void (*cleanup)(struct serio *);