blob: 9b12ee9ad4455c6af680f28b6783fbdd9ebaf065 [file] [log] [blame]
Andrew Geisslerea144b032023-01-27 16:03:57 -06001From 71162273e8a6b28a6aaf8635cff752419d09a293 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
Andrew Geisslerea144b032023-01-27 16:03:57 -06004Subject: [PATCH 12/25] 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>
Patrick Williams8dd68482022-10-04 07:57:18 -050010Upstream-Status: Pending [Not submitted to upstream yet]
Brad Bishopbec4ebc2022-08-03 09:55:16 -040011---
12 common/usb_storage.c | 3 +++
13 1 file changed, 3 insertions(+)
14
15diff --git a/common/usb_storage.c b/common/usb_storage.c
Patrick Williams8dd68482022-10-04 07:57:18 -050016index eaa31374ef..79cf4297d4 100644
Brad Bishopbec4ebc2022-08-03 09:55:16 -040017--- a/common/usb_storage.c
18+++ b/common/usb_storage.c
Patrick Williams92b42cb2022-09-03 06:53:57 -050019@@ -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 -040020 st:
21 retry = 0;
22 again:
23+ if (srb->cmd[0] == SCSI_TST_U_RDY)
24+ mdelay(100);
25+
26 debug("STATUS phase\n");
27 result = usb_bulk_msg(us->pusb_dev, pipein, csw, UMASS_BBB_CSW_SIZE,
28 &actlen, USB_CNTL_TIMEOUT*5);
29--
Patrick Williams8dd68482022-10-04 07:57:18 -0500302.17.1
Brad Bishopbec4ebc2022-08-03 09:55:16 -040031