summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorChristophe Kerello <christophe.kerello@st.com>2018-03-15 18:00:31 +0100
committerMarek Vasut <marex@denx.de>2018-03-17 03:23:09 +0100
commitc2e4c8656978302ff2846a655fb87c658220c4e0 (patch)
tree56212d85c4b0b00a1ff2d36c2f85d2ec89598f64 /drivers/usb
parent82e7975b85bea1c2acccf30e6fd11e1a48a7e783 (diff)
downloadu-boot-c2e4c8656978302ff2846a655fb87c658220c4e0.tar.gz
u-boot-c2e4c8656978302ff2846a655fb87c658220c4e0.tar.xz
u-boot-c2e4c8656978302ff2846a655fb87c658220c4e0.zip
usb: dwc2: increase timeout in wait_for_chhltd
This patch increases timeout to 2s. It was seen on 2 USB devices (Verbatim STORE N GO 070B4AED0FB22358 and USB DISK 2.0 9000729BA41DDF40) that the request sense command takes between 1.3s and and 1.5s. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/dwc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/host/dwc2.c b/drivers/usb/host/dwc2.c
index 138646e4c8..f9e2f2b785 100644
--- a/drivers/usb/host/dwc2.c
+++ b/drivers/usb/host/dwc2.c
@@ -811,7 +811,7 @@ int wait_for_chhltd(struct dwc2_hc_regs *hc_regs, uint32_t *sub, u8 *toggle)
uint32_t hcint, hctsiz;
ret = wait_for_bit_le32(&hc_regs->hcint, DWC2_HCINT_CHHLTD, true,
- 1000, false);
+ 2000, false);
if (ret)
return ret;