summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3
diff options
context:
space:
mode:
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>2012-04-27 12:52:01 +0300
committerFelipe Balbi <balbi@ti.com>2012-06-03 23:08:22 +0300
commitaed430e5139af3e2c251f52db7fc6c5e2ce2b714 (patch)
tree338b5d890c26aa4d51c1e55f33b55a4ac9e397b6 /drivers/usb/dwc3
parent2c61a8efce75951148fa07f2cd7ec53ad9d9fbb3 (diff)
downloadlinux-aed430e5139af3e2c251f52db7fc6c5e2ce2b714.tar.bz2
usb: dwc3: gadget: reinitialize retries
retries is used twice without being reinitialized. Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r--drivers/usb/dwc3/gadget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c
index 045799356a29..c21516aef5e4 100644
--- a/drivers/usb/dwc3/gadget.c
+++ b/drivers/usb/dwc3/gadget.c
@@ -108,6 +108,7 @@ int dwc3_gadget_set_link_state(struct dwc3 *dwc, enum dwc3_link_state state)
dwc3_writel(dwc->regs, DWC3_DCTL, reg);
/* wait for a change in DSTS */
+ retries = 10000;
while (--retries) {
reg = dwc3_readl(dwc->regs, DWC3_DSTS);