]> git.baikalelectronics.ru Git - kernel.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)
committerJiri Kosina <jkosina@suse.cz>
Fri, 12 Dec 2014 10:14:46 +0000 (11:14 +0100)
commit576d5ccb6dbae3e6bf979c2d59cc11c3a5ee6fa7
treef9414212e77c6a4a40b7ed0efe3950aa746c7940
parent2449157e8b13290e490db52fbdcf00f6f293c59e
HID: rmi: Check for additional ACM registers appended to F11 data report

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>
drivers/hid/hid-rmi.c