]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - register F03 port as pass-through serio
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Jun 2017 20:05:03 +0000 (13:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 9 Jun 2017 16:57:19 +0000 (09:57 -0700)
commit1b804db79eefaf4d75dcfe4456c35a0fdc4f774f
tree4abd7c2b4fc2ad7cf4e9f889e84a038c82f6f7cd
parent2b76a6c32e11e53eaae5c6afbdacdb88f02d760c
Input: synaptics-rmi4 - register F03 port as pass-through serio

The 5th generation Thinkpad X1 Carbons use Synaptics touchpads accessible
over SMBus/RMI, combined with ALPS or Elantech trackpoint devices instead
of classic IBM/Lenovo trackpoints. Unfortunately there is no way for ALPS
driver to detect whether it is dealing with touchpad + trackpoint
combination or just a trackpoint, so we end up with a "phantom" dualpoint
ALPS device in addition to real touchpad and trackpoint.

Given that we do not have any special advanced handling for ALPS or
Elantech trackpoints (unlike IBM trackpoints that have separate driver and
a host of options) we are better off keeping the trackpoints in PS/2
emulation mode. We achieve that by setting serio type to SERIO_PS_PSTHRU,
which will limit number of protocols psmouse driver will try. In addition
to getting rid of the "phantom" touchpads, this will also speed up probing
of F03 pass-through port.

Reported-by: Damjan Georgievski <gdamjan@gmail.com>
Suggested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_f03.c