usb: chipidea: msm: Handle phy power states
The ULPI phy on qcom platforms needs to be initialized and powered on after a USB reset and before we toggle the run/stop bit. Otherwise, the phy locks up and doesn't work properly. Hook the phy initialization into the RESET event and the phy power off into the STOPPED event. Acked-by: Peter Chen <peter.chen@nxp.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Peter Chen <peter.chen@nxp.com>
This commit is contained in:
@@ -90,8 +90,12 @@ static int ehci_ci_reset(struct usb_hcd *hcd)
|
||||
|
||||
ehci->need_io_watchdog = 0;
|
||||
|
||||
if (ci->platdata->notify_event)
|
||||
ci->platdata->notify_event(ci, CI_HDRC_CONTROLLER_RESET_EVENT);
|
||||
if (ci->platdata->notify_event) {
|
||||
ret = ci->platdata->notify_event(ci,
|
||||
CI_HDRC_CONTROLLER_RESET_EVENT);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ci_platform_configure(ci);
|
||||
|
||||
|
Reference in New Issue
Block a user