HID: rmi: use HID_QUIRK_NO_INPUT_SYNC
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 25 May 2018 12:51:06 +0000 (14:51 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 30 May 2018 06:55:33 +0000 (08:55 +0200)
commitc94ba060112ad24fa29b2bdafc0c32173e1f1959
tree616b4b5a3f5d2174ce03ea6db4b1727a0f49f4bd
parent008464a9360e31b14677457dcd976fbf9dd58e2e
HID: rmi: use HID_QUIRK_NO_INPUT_SYNC

When we receive a RMI4 report, we should not unconditionally send an
input_sync event. Instead, we should let the rmi4 transport layer do it
for us.

This fixes a situation where we might receive X in a report and the rest
in a subsequent one. And this messes up user space.

Link: https://bugs.freedesktop.org/show_bug.cgi?id=100436
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Tested-by: Oscar Morante <spacepluk@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-rmi.c