HID: usbhid: fix error handling of not enough bandwidth
authorOliver Neukum <oneukum@suse.de>
Wed, 28 Mar 2012 11:16:19 +0000 (13:16 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 30 Mar 2012 13:14:27 +0000 (15:14 +0200)
commita8c52b662cef520815ed43cb3305f8b45b452694
tree409aa82687d6380a85c63a6d2e121150de8eb3c1
parentd464c92b5234227c1698862a1906827e2e398ae0
HID: usbhid: fix error handling of not enough bandwidth

In case IO cannot be started because there is a lack of bandwidth
on the bus, it makes no sense to reset the device. If IO is requested
because the device is opened, user space should be notified with
an error right away. If the lack of bandwidth arises later, for
example after resume, there's no other choice but to retry in the
hope that bandwidth will be freed.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c
drivers/hid/usbhid/usbhid.h