Loading drivers/usb/dwc3/dwc3-msm.c +6 −0 Original line number Diff line number Diff line Loading @@ -2095,6 +2095,12 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc) return -EBUSY; } if (!mdwc->in_host_mode && (mdwc->vbus_active && !mdwc->suspend)) { dev_dbg(mdwc->dev, "Received wakeup event before the core suspend\n"); return -EBUSY; } ret = dwc3_msm_prepare_suspend(mdwc); if (ret) return ret; Loading drivers/usb/dwc3/gadget.c +4 −1 Original line number Diff line number Diff line Loading @@ -3189,8 +3189,11 @@ static void dwc3_gadget_wakeup_interrupt(struct dwc3 *dwc, bool remote_wakeup) /* * In case of remote wake up dwc3_gadget_wakeup_work() * is doing pm_runtime_get_sync(). * is doing pm_runtime_get_sync(). But mark last wakeup * event here to prevent runtime_suspend happening before this * wakeup event is processed. */ pm_runtime_mark_last_busy(dwc->dev); dev_dbg(dwc->dev, "Notify OTG from %s\n", __func__); dwc->b_suspend = false; dwc3_notify_event(dwc, Loading Loading
drivers/usb/dwc3/dwc3-msm.c +6 −0 Original line number Diff line number Diff line Loading @@ -2095,6 +2095,12 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc) return -EBUSY; } if (!mdwc->in_host_mode && (mdwc->vbus_active && !mdwc->suspend)) { dev_dbg(mdwc->dev, "Received wakeup event before the core suspend\n"); return -EBUSY; } ret = dwc3_msm_prepare_suspend(mdwc); if (ret) return ret; Loading
drivers/usb/dwc3/gadget.c +4 −1 Original line number Diff line number Diff line Loading @@ -3189,8 +3189,11 @@ static void dwc3_gadget_wakeup_interrupt(struct dwc3 *dwc, bool remote_wakeup) /* * In case of remote wake up dwc3_gadget_wakeup_work() * is doing pm_runtime_get_sync(). * is doing pm_runtime_get_sync(). But mark last wakeup * event here to prevent runtime_suspend happening before this * wakeup event is processed. */ pm_runtime_mark_last_busy(dwc->dev); dev_dbg(dwc->dev, "Notify OTG from %s\n", __func__); dwc->b_suspend = false; dwc3_notify_event(dwc, Loading