summaryrefslogtreecommitdiff
path: root/include/linux/string.h
diff options
context:
space:
mode:
authorMarek Vasut <[email protected]>2019-10-05 19:18:38 +0200
committerMarek Vasut <[email protected]>2019-10-31 12:13:40 +0100
commitda3d1c499fbb7cfe1c1dc1bc47699a2f30df4384 (patch)
tree0a444d2d03b34a97440efd236450e3979da19972 /include/linux/string.h
parent7d6fd7f0ba71cd93d94079132f958d9630f27a89 (diff)
usb: storage: Only clear READY flag on error
Clear the USB_READY flag in the storage driver only in case there is an error, otherwise usb_stor_BBB_transport() waits 5 mS before doing anything every single time. This is because the USB_READY flag is only ever set in usb_test_unit_ready(), which is called only upon storage device probe, not between each and every request. However, the device cannot move out of USB_READY state once it was initialized. Signed-off-by: Marek Vasut <[email protected]> Cc: Bin Meng <[email protected]> Cc: Simon Glass <[email protected]>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions