HID: rmi: only bind the hid-rmi driver to the mouse interface of composite USB devices
authorAndrew Duggan <aduggan@synaptics.com>
Thu, 17 Jul 2014 23:14:45 +0000 (16:14 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 29 Jul 2014 09:28:49 +0000 (11:28 +0200)
commite19ff99f256aeeff6c07b373e01883b72e049552
tree2fc5fdecb458aeee7f8e91744f549fb1e4587864
parentdd3edeb6a0267029bc3ffc480fb41dffb9081844
HID: rmi: only bind the hid-rmi driver to the mouse interface of composite USB devices

On composite HID devices there may be multiple HID devices on separate interfaces, but hid-rmi
should only bind to the mouse interface. One example is the Dell Venue 11 Pro's keyboard dock
which contains a composite USB device with a HID touchpad and HID keyboard on separate intefaces.
Since the USB Vendor ID is Synaptic's, hid-core is currently trying to bind hid-rmi to all\of
the HID devices. This patch ensures that hid-rmi only binds to the mouse interface.

related bug:
https://bugzilla.kernel.org/show_bug.cgi?id=80091

Signed-off-by: Andrew Duggan <aduggan@synaptics.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c