]> git.baikalelectronics.ru Git - kernel.git/commit
HID: core: do not scan constant input report
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 31 Mar 2014 17:27:10 +0000 (13:27 -0400)
committerJiri Kosina <jkosina@suse.cz>
Mon, 7 Apr 2014 07:55:25 +0000 (09:55 +0200)
commit530325a05fd30c8f8dec7ec4c6d375d6f1b7b332
tree94ffabba4678d9e9bdcd77564043735a7fd96edb
parentc25f85001cae7272322799b9d3c88bf16d3b7be2
HID: core: do not scan constant input report

The Microsoft Surface Type/Touch Cover 2 is a fancy device which advertised
itself as a multitouch device but with constant input reports.
This way, hid_scan_report() gives the group MULTITOUCH to it, but
hid-multitouch can not handle it due to the constant collection ignored
by hid-input.

To prevent such crap in the future, and while we do not fix this particular
device, make the scan_report coherent with hid-input.c, and ignore constant
input reports.

CC: stable@vger.kernel.org # 3.12+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c