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)
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>

No differences found