]> git.itanic.dy.fi Git - linux-stable/commit
Input: elantech - fix semi-mt protocol for v3 HW
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Thu, 23 Apr 2015 16:08:43 +0000 (09:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Jun 2015 15:21:07 +0000 (08:21 -0700)
commit71d4c0486c4dc77f6fe81ddc244426ca7b631950
tree242002ccd3a832ac95936ad5a62c5fa06ce9985d
parent41e6fa28dea0ef4efd06e96e785cb88cfe2c17ed
Input: elantech - fix semi-mt protocol for v3 HW

commit 3c0213d17a09601e0c6c0ae0e27caf70d988290f upstream.

When the v3 hardware sees more than one finger, it uses the semi-mt
protocol to report the touches. However, it currently works when
num_fingers is 0, 1 or 2, but when it is 3 and above, it sends only 1
finger as if num_fingers was 1.

This confuses userspace which knows how to deal with extra fingers
when all the slots are used, but not when some are missing.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90101
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/mouse/elantech.c