HID: usbhid: check for suspend or reset before restarting
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 19 Jul 2012 20:08:54 +0000 (16:08 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Jul 2012 09:24:25 +0000 (11:24 +0200)
commitd4150c8f3d80b4a9387083478a86da8b3390dd83
tree8a7dd3e89587dc3f986dc83c2ce40e91a96dac24
parentf2b5264d4f77328e45d73cd135772b6e88a4951a
HID: usbhid: check for suspend or reset before restarting

This patch (as1596) improves the queue-restart logic in usbhid by
checking to see if the device is suspended or a reset is about to
occur.  There's no point submitting an URB if either of those is
true.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c