blob: fa201eb9c8047ff87cdf27f0929d0c60cb1e4181 [file] [log] [blame]
Brad Bishopbec4ebc2022-08-03 09:55:16 -04001From e2463e3ef52260b38131085c0901de8708d52693 Mon Sep 17 00:00:00 2001
2From: Rui Miguel Silva <rui.silva@linaro.org>
3Date: Fri, 4 Mar 2022 15:56:09 +0000
4Subject: [PATCH 14/27] arm: corstone1000: fix unrecognized filesystem type
5
6Some usb sticks are not recognized by usb, just add a
7delay before checking status.
8
9Signed-off-by: Rui Miguel Silva <rui.silva@linaro.org>
10---
11 common/usb_storage.c | 3 +++
12 1 file changed, 3 insertions(+)
13
14diff --git a/common/usb_storage.c b/common/usb_storage.c
15index c9e2d7343ce2..ae72338323ba 100644
16--- a/common/usb_storage.c
17+++ b/common/usb_storage.c
18@@ -769,6 +769,9 @@ static int usb_stor_BBB_transport(struct scsi_cmd *srb, struct us_data *us)
19 st:
20 retry = 0;
21 again:
22+ if (srb->cmd[0] == SCSI_TST_U_RDY)
23+ mdelay(100);
24+
25 debug("STATUS phase\n");
26 result = usb_bulk_msg(us->pusb_dev, pipein, csw, UMASS_BBB_CSW_SIZE,
27 &actlen, USB_CNTL_TIMEOUT*5);
28--
292.30.2
30