]> git.karo-electronics.de Git - linux-beck.git/commit
Input: ALPS - fix TrackStick support for SS5 hardware
authorPaul Donohue <linux-kernel@PaulSD.com>
Tue, 29 Nov 2016 04:11:25 +0000 (20:11 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 29 Nov 2016 04:24:05 +0000 (20:24 -0800)
commit864db9295b06837d11a260e5dacf99a3fdf6bce2
tree1a79a642cce2c44bf56a3ea35be41e82b5d3cde5
parent031bfed2aba8a727fe5a6c2169d5e4e0751a1bf0
Input: ALPS - fix TrackStick support for SS5 hardware

The current Alps SS5 (SS4 v2) code generates bogus TouchPad events when
TrackStick packets are processed.

This causes the xorg synaptics driver to print
"unable to find touch point 0" and
"BUG: triggered 'if (priv->num_active_touches > priv->num_slots)'"
messages.  It also causes unexpected TouchPad button release and re-click
event sequences if the TrackStick is moved while holding a TouchPad
button.

This commit corrects the problem by adjusting alps_process_packet_ss4_v2()
so that it only sends TrackStick reports when processing TrackStick
packets.

Reviewed-by: Pali Rohár <pali.rohar@gmail.com>
Signed-off-by: Paul Donohue <linux-kernel@PaulSD.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c