]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
HID: usbhid: fix "always poll" quirk
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 13 Jul 2017 00:14:24 +0000 (17:14 -0700)
committerJiri Kosina <jkosina@suse.cz>
Fri, 21 Jul 2017 16:14:03 +0000 (18:14 +0200)
commitcf601774c9f23078010adc9e6cd29470fafa5678
tree0c81324a25d929d3f9acefd1f9a770bcea8ed15d
parent929b60a85b731d803f2b7829149496479eba0b20
HID: usbhid: fix "always poll" quirk

Even though the IO for devices with "always poll" quirk is already running,
we still need to set HID_OPENED bit in usbhid->iofl so the interrupt
handler does not ignore the data coming from the device.

Reported-by: Olof Johansson <olof@lixom.net>
Tested-by: Olof Johansson <olof@lixom.net>
Fixes: e399396a6b0 ("HID: usbhid: remove custom locking from usbhid_open...")
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Acked-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c