HID: usbhid: add always-poll quirk
authorJohan Hovold <johan@kernel.org>
Fri, 5 Sep 2014 16:08:47 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Nov 2014 17:00:06 +0000 (09:00 -0800)
commit4c4986daaa0063e39ce957bfe440e2ed5b88ed7b
treeabddd0b3aee871ab5fafebc014e1dbd4537773e3
parent2a5082de38b2c790dbf157b24e384578b0db9657
HID: usbhid: add always-poll quirk

commit 0b750b3baa2d64f1b77aecc10f20deeb28efe60d upstream.

Add quirk to make sure that a device is always polled for input events
even if it hasn't been opened.

This is needed for devices that disconnects from the bus unless the
interrupt endpoint has been polled at least once or when not responding
to an input event (e.g. after having shut down X).

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/usbhid/hid-core.c
include/linux/hid.h