Input: psmouse - add a custom serio protocol to send extra information
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 8 Feb 2017 07:58:02 +0000 (23:58 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 9 Feb 2017 19:43:15 +0000 (11:43 -0800)
commit19ba1eb15a2a9b7298d1d984043025ab9496fbfb
treed3d5142e3082c7e2844cea7205938a78b9994b2b
parente78395334ba6034b53e21e09ce8a50c303d130a9
Input: psmouse - add a custom serio protocol to send extra information

The tracksticks on the Lenovo thinkpads have their buttons connected
through the touchpad device. We already fixed that in synaptics.c, but
when we switch the device into RMI4 mode to have proper support, the
pass-through functionality can't deal with them easily.

We add a new PS/2 flag and protocol designed for psmouse.  The RMI4 F03
pass-through can then emit a special set of commands to notify psmouse the
state of the buttons.

This patch implements the protocol in psmouse, while an other will
do the same for rmi4-f03.

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