cpu_relax();
} while (true);
-=======
-done:
- /*
- * For DWC_usb31 controller, once DWC3_DCTL_CSFTRST bit is cleared,
- * we must wait at least 50ms before accessing the PHY domain
- * (synchronization delay). DWC_usb31 programming guide section 1.3.2.
- */
- if (dwc3_is_usb31(dwc))
- msleep(50);
->>>>>>> 818299f6bdae
return 0;
}
if (req->request.status == -EINPROGRESS)
req->request.status = status;
-<<<<<<< HEAD
- /*
- * NOTICE we don't want to unmap before calling ->complete() if we're
- * dealing with a bounced ep0 request. If we unmap it here, we would end
- * up overwritting the contents of req->buf and this could confuse the
- * gadget driver.
- */
- if (req->trb) {
- if (dwc->ep0_bounced && dep->number <= 1) {
- dwc->ep0_bounced = false;
- unmap_after_complete = true;
- } else {
- usb_gadget_unmap_request_by_dev(dwc->sysdev,
- &req->request, req->direction);
- req->trb = NULL;
- }
- }
-
-=======
if (req->trb)
usb_gadget_unmap_request_by_dev(dwc->sysdev,
&req->request, req->direction);
req->trb = NULL;
->>>>>>> 818299f6bdae
trace_dwc3_gadget_giveback(req);
if (dep->number > 1)
spin_unlock(&dwc->lock);
usb_gadget_giveback_request(&dep->endpoint, &req->request);
spin_lock(&dwc->lock);
-<<<<<<< HEAD
-
- if (unmap_after_complete)
- usb_gadget_unmap_request_by_dev(dwc->sysdev,
- &req->request, req->direction);
- req->trb = NULL;
-
- if (dep->number > 1)
- pm_runtime_put(dwc->dev);
-=======
->>>>>>> 818299f6bdae
}
/**
t2 |= PORT_WKOC_E | PORT_WKCONN_E;
t2 &= ~PORT_WKDISC_E;
}
-<<<<<<< HEAD
} else {
-=======
-
- if ((xhci->quirks & XHCI_U2_DISABLE_WAKE) &&
- (hcd->speed < HCD_USB3)) {
- if (usb_amd_pt_check_port(hcd->self.controller,
- port_index))
- t2 &= ~PORT_WAKE_BITS;
- }
- } else
->>>>>>> 818299f6bdae
t2 &= ~PORT_WAKE_BITS;
}
static int __maybe_unused xhci_plat_suspend(struct device *dev)
{
-<<<<<<< HEAD
/*
*struct usb_hcd *hcd = dev_get_drvdata(dev);
*struct xhci_hcd *xhci = hcd_to_xhci(hcd);
*/
pr_info("[%s] \n",__func__);
-=======
- struct usb_hcd *hcd = dev_get_drvdata(dev);
- struct xhci_hcd *xhci = hcd_to_xhci(hcd);
->>>>>>> 818299f6bdae
/*
* xhci_suspend() needs `do_wakeup` to know whether host is allowed
* reconsider this when xhci_plat_suspend enlarges its scope, e.g.,
* also applies to runtime suspend.
*/
-<<<<<<< HEAD
/*
*ret = xhci_suspend(xhci, device_may_wakeup(dev));
* clk_disable_unprepare(xhci->clk);
*/
return 0;
-=======
- return xhci_suspend(xhci, device_may_wakeup(dev));
->>>>>>> 818299f6bdae
}
static int __maybe_unused xhci_plat_resume(struct device *dev)
{
-<<<<<<< HEAD
/*
*struct usb_hcd *hcd = dev_get_drvdata(dev);
*struct xhci_hcd *xhci = hcd_to_xhci(hcd);
*/
pr_info("[%s] \n",__func__);
-=======
- struct usb_hcd *hcd = dev_get_drvdata(dev);
- struct xhci_hcd *xhci = hcd_to_xhci(hcd);
- int ret;
-
- ret = xhci_priv_resume_quirk(hcd);
- if (ret)
- return ret;
->>>>>>> 818299f6bdae
/*
*if (!device_may_wakeup(dev) && !IS_ERR(xhci->clk))