diff options
author | Oliver Neukum <oneukum@suse.de> | 2012-03-28 07:16:19 -0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-03-30 09:14:27 -0400 |
commit | a8c52b662cef520815ed43cb3305f8b45b452694 (patch) | |
tree | 409aa82687d6380a85c63a6d2e121150de8eb3c1 /drivers/hid/usbhid/usbhid.h | |
parent | d464c92b5234227c1698862a1906827e2e398ae0 (diff) |
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>
Diffstat (limited to 'drivers/hid/usbhid/usbhid.h')
-rw-r--r-- | drivers/hid/usbhid/usbhid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/hid/usbhid/usbhid.h b/drivers/hid/usbhid/usbhid.h index cb8f703efde5..1883d7b94870 100644 --- a/drivers/hid/usbhid/usbhid.h +++ b/drivers/hid/usbhid/usbhid.h | |||
@@ -55,6 +55,7 @@ struct usb_interface *usbhid_find_interface(int minor); | |||
55 | #define HID_STARTED 8 | 55 | #define HID_STARTED 8 |
56 | #define HID_REPORTED_IDLE 9 | 56 | #define HID_REPORTED_IDLE 9 |
57 | #define HID_KEYS_PRESSED 10 | 57 | #define HID_KEYS_PRESSED 10 |
58 | #define HID_NO_BANDWIDTH 11 | ||
58 | 59 | ||
59 | /* | 60 | /* |
60 | * USB-specific HID struct, to be pointed to | 61 | * USB-specific HID struct, to be pointed to |