Skip to content

Commit

Permalink
usb: dwc3: gadget: reinitialize retries
Browse files Browse the repository at this point in the history
retries is used twice without being reinitialized.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Paul Zimmerman authored and Felipe Balbi committed Jun 3, 2012
1 parent 2c61a8e commit aed430e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit aed430e

Please sign in to comment.