]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit38a4f117d3e03d2fe7117ebf3d1e26d292d7845f
treed3d5142e3082c7e2844cea7205938a78b9994b2b
parentc087fdc0986bc5ab14b5ce9f4cec68e944b6396f
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