]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: rmi: Check for additional ACM registers appended to F11 data report
authorAndrew Duggan <aduggan@synaptics.com>
Mon, 8 Dec 2014 23:01:59 +0000 (15:01 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Feb 2015 06:36:09 +0000 (22:36 -0800)
commit427a5746b4215b154efb85b07781799b79f8958c
treecf8d0e10f069a763c8bde191f56d58257c9d74b9
parentce9555406a478683c4d4641ae8b0b35845084c39
HID: rmi: Check for additional ACM registers appended to F11 data report

commit 8414947a2018a98cf3adc975dc279f41ba30ab11 upstream.

If a touchpad reports the F11 data40 register then this indicates that the touchpad reports
additional ACM (Accidental Contact Mitigation) data after the F11 data in the HID attention
report. These additional bytes shift the position of the F30 button data causing the driver
to incorrectly report button state when this functionality is present. This patch accounts
for the additional data in the report.

Fixes:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1398533

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Cc: Joseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-rmi.c