Loading drivers/usb/dwc3/gadget.c +6 −12 Original line number Diff line number Diff line Loading @@ -327,19 +327,13 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd, break; } } while (--timeout); /* * We can't sleep here, because it is also called from * interrupt context. */ timeout--; if (!timeout) { if (timeout == 0) { dwc3_trace(trace_dwc3_gadget, "Command Timed Out"); ret = -ETIMEDOUT; break; } } while (1); if (unlikely(susphy)) { reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); Loading Loading
drivers/usb/dwc3/gadget.c +6 −12 Original line number Diff line number Diff line Loading @@ -327,19 +327,13 @@ int dwc3_send_gadget_ep_cmd(struct dwc3_ep *dep, unsigned cmd, break; } } while (--timeout); /* * We can't sleep here, because it is also called from * interrupt context. */ timeout--; if (!timeout) { if (timeout == 0) { dwc3_trace(trace_dwc3_gadget, "Command Timed Out"); ret = -ETIMEDOUT; break; } } while (1); if (unlikely(susphy)) { reg = dwc3_readl(dwc->regs, DWC3_GUSB2PHYCFG(0)); Loading