]> git.baikalelectronics.ru Git - kernel.git/commit
HID: multitouch: Release all touch slots on reset_resume
authorBenson Leung <bleung@chromium.org>
Fri, 11 Mar 2016 22:19:49 +0000 (14:19 -0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 14 Mar 2016 09:00:00 +0000 (10:00 +0100)
commiteaae8f805f460c78a37003eaff8db8b78301642a
treef3f7efda01f034d415a9649af5c9a39eb064515f
parente2f618e457187e1e24845971e7ec6098b380243b
HID: multitouch: Release all touch slots on reset_resume

When resetting a device (especially after power loss) it is unlikely
that the firmware will keep the contact tracking data for the previous
touches and will be able to reconcile it with the new contacts, so
let's release all slots on reset resume as start anew.

Signed-off-by: Benson Leung <bleung@chromium.org>
Signed-off-by: Dmitry Torokhov <dtor@chromium.org>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c