kernel-hacking-2024-linux-s.../drivers/input
Aaron Ma f5d07b9e98 Input: trackpoint - force 3 buttons if 0 button is reported
Lenovo introduced trackpoint compatible sticks with minimum PS/2 commands.
They supposed to reply with 0x02, 0x03, or 0x04 in response to the
"Read Extended ID" command, so we would know not to try certain extended
commands. Unfortunately even some trackpoints reporting the original IBM
version (0x01 firmware 0x0e) now respond with incorrect data to the "Get
Extended Buttons" command:

 thinkpad_acpi: ThinkPad BIOS R0DET87W (1.87 ), EC unknown
 thinkpad_acpi: Lenovo ThinkPad E470, model 20H1004SGE

 psmouse serio2: trackpoint: IBM TrackPoint firmware: 0x0e, buttons: 0/0

Since there are no trackpoints without buttons, let's assume the trackpoint
has 3 buttons when we get 0 response to the extended buttons query.

Signed-off-by: Aaron Ma <aaron.ma@canonical.com>
Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=196253
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2018-01-22 16:23:17 -08:00
..
gameport License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
joystick Input: xpad - add support for PDP Xbox One controllers 2018-01-22 11:33:40 -08:00
keyboard Linux 4.14-rc8 2017-11-07 18:11:56 -08:00
misc Input: twl6040-vibra - fix child-node lookup 2018-01-08 17:40:55 -08:00
mouse Input: trackpoint - force 3 buttons if 0 button is reported 2018-01-22 16:23:17 -08:00
rmi4 Input: synaptics-rmi4 - prevent UAF reported by KASAN 2018-01-18 11:40:13 -08:00
serio Linux 4.14-rc8 2017-11-07 18:11:56 -08:00
tablet License cleanup: add SPDX license identifiers to some files 2017-11-02 10:04:46 -07:00
touchscreen Input: stmfts,s6sy671 - add SPDX identifier 2018-01-22 11:32:16 -08:00
apm-power.c
evbug.c
evdev.c input: utilize new cdev_device_add helper function 2017-03-21 06:44:32 +01:00
ff-core.c Input: uinput - avoid FF flush when destroying device 2017-09-21 16:31:22 -07:00
ff-memless.c Input: ff_memless - convert to using timer_setup() 2017-10-23 16:31:52 -07:00
input-compat.c
input-compat.h
input-leds.c
input-mt.c
input-polldev.c
input.c Input: convert autorepeat timer to use timer_setup() 2017-11-03 12:45:23 -07:00
joydev.c Input: joydev - blacklist ds3/ds4/udraw motion sensors 2017-10-19 16:55:39 -07:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
matrix-keymap.c
mousedev.c Input: mousedev - fix implicit conversion warning 2017-07-25 13:54:31 -07:00
sparse-keymap.c Input: sparse-keymap - send sync event for KE_SW/KE_VSW 2017-11-03 12:47:48 -07:00