diff options
author | Marek Vasut | 2019-10-05 19:18:38 +0200 |
---|---|---|
committer | Marek Vasut | 2019-10-31 12:13:40 +0100 |
commit | da3d1c499fbb7cfe1c1dc1bc47699a2f30df4384 (patch) | |
tree | 0a444d2d03b34a97440efd236450e3979da19972 /drivers/usb/host/ehci-hcd.c | |
parent | 7d6fd7f0ba71cd93d94079132f958d9630f27a89 (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 <marek.vasut+renesas@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/usb/host/ehci-hcd.c')
0 files changed, 0 insertions, 0 deletions