diff options
author | Paul Zimmerman <Paul.Zimmerman@synopsys.com> | 2012-04-27 05:52:01 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-06-03 16:08:22 -0400 |
commit | aed430e5139af3e2c251f52db7fc6c5e2ce2b714 (patch) | |
tree | 338b5d890c26aa4d51c1e55f33b55a4ac9e397b6 /drivers/usb/dwc3 | |
parent | 2c61a8efce75951148fa07f2cd7ec53ad9d9fbb3 (diff) |
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.c | 1 |
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) | |||
108 | dwc3_writel(dwc->regs, DWC3_DCTL, reg); | 108 | dwc3_writel(dwc->regs, DWC3_DCTL, reg); |
109 | 109 | ||
110 | /* wait for a change in DSTS */ | 110 | /* wait for a change in DSTS */ |
111 | retries = 10000; | ||
111 | while (--retries) { | 112 | while (--retries) { |
112 | reg = dwc3_readl(dwc->regs, DWC3_DSTS); | 113 | reg = dwc3_readl(dwc->regs, DWC3_DSTS); |
113 | 114 | ||