Loading drivers/usb/dwc3/gadget.c +2 −0 Original line number Diff line number Diff line Loading @@ -1571,6 +1571,7 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g) /* poll until Link State changes to ON */ timeout = jiffies + msecs_to_jiffies(100); spin_unlock_irqrestore(&dwc->lock, flags); while (!time_after(jiffies, timeout)) { reg = dwc3_readl(dwc->regs, DWC3_DSTS); Loading @@ -1578,6 +1579,7 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g) if (DWC3_DSTS_USBLNKST(reg) == DWC3_LINK_STATE_U0) break; } spin_lock_irqsave(&dwc->lock, flags); if (DWC3_DSTS_USBLNKST(reg) != DWC3_LINK_STATE_U0) { dev_err(dwc->dev, "failed to send remote wakeup\n"); Loading Loading
drivers/usb/dwc3/gadget.c +2 −0 Original line number Diff line number Diff line Loading @@ -1571,6 +1571,7 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g) /* poll until Link State changes to ON */ timeout = jiffies + msecs_to_jiffies(100); spin_unlock_irqrestore(&dwc->lock, flags); while (!time_after(jiffies, timeout)) { reg = dwc3_readl(dwc->regs, DWC3_DSTS); Loading @@ -1578,6 +1579,7 @@ static int dwc3_gadget_wakeup(struct usb_gadget *g) if (DWC3_DSTS_USBLNKST(reg) == DWC3_LINK_STATE_U0) break; } spin_lock_irqsave(&dwc->lock, flags); if (DWC3_DSTS_USBLNKST(reg) != DWC3_LINK_STATE_U0) { dev_err(dwc->dev, "failed to send remote wakeup\n"); Loading