UPSTREAM: 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.

Change-Id: I3e241e2c731298cf238b31deea2785a08c012b73
Signed-off-by: Christophe Kerello <christophe.kerello@st.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit c2e4c8656978302ff2846a655fb87c658220c4e0)
This commit is contained in:
Christophe Kerello 2018-03-15 18:00:31 +01:00 committed by Frank Wang
parent f7dd21876b
commit 8d1c811e5c
1 changed files with 1 additions and 1 deletions

View File

@ -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;