diff options
author | Oliver Neukum <oneukum@suse.de> | 2012-03-28 13:16:19 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-03-30 15:14:27 +0200 |
commit | a8c52b662cef520815ed43cb3305f8b45b452694 (patch) | |
tree | 409aa82687d6380a85c63a6d2e121150de8eb3c1 /drivers/hid/usbhid/usbhid.h | |
parent | d464c92b5234227c1698862a1906827e2e398ae0 (diff) | |
download | talos-obmc-linux-a8c52b662cef520815ed43cb3305f8b45b452694.tar.gz talos-obmc-linux-a8c52b662cef520815ed43cb3305f8b45b452694.zip |
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); #define HID_STARTED 8 #define HID_REPORTED_IDLE 9 #define HID_KEYS_PRESSED 10 +#define HID_NO_BANDWIDTH 11 /* * USB-specific HID struct, to be pointed to |