blob: 315174102798d1348a86d4938679dd8e1b888eb7 [file] [log] [blame]
Patrick Williams92b42cb2022-09-03 06:53:57 -05001From 340ba3fbb0ea388578e30aede92695886f221eaf Mon Sep 17 00:00:00 2001
Brad Bishopbec4ebc2022-08-03 09:55:16 -04002From: Rui Miguel Silva <rui.silva@linaro.org>
3Date: Fri, 4 Mar 2022 15:56:09 +0000
Patrick Williams92b42cb2022-09-03 06:53:57 -05004Subject: [PATCH 14/24] arm: corstone1000: fix unrecognized filesystem type
Brad Bishopbec4ebc2022-08-03 09:55:16 -04005
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
Patrick Williams92b42cb2022-09-03 06:53:57 -050015index eaa31374ef73..79cf4297d4f4 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040016--- a/common/usb_storage.c
17+++ b/common/usb_storage.c
Patrick Williams92b42cb2022-09-03 06:53:57 -050018@@ -784,6 +784,9 @@ static int usb_stor_BBB_transport(struct scsi_cmd *srb, struct us_data *us)
Brad Bishopbec4ebc2022-08-03 09:55:16 -040019 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--
Patrick Williams92b42cb2022-09-03 06:53:57 -0500292.37.1
Brad Bishopbec4ebc2022-08-03 09:55:16 -040030