Merge "usb: dwc3-msm: Fix restart usb work functionality"
This commit is contained in:
commit
d0fd03a2cf
1 changed files with 1 additions and 1 deletions
|
@ -1967,7 +1967,7 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc)
|
|||
clk_disable_unprepare(mdwc->xo_clk);
|
||||
|
||||
/* Perform controller power collapse */
|
||||
if (!mdwc->in_host_mode && !mdwc->vbus_active) {
|
||||
if (!mdwc->in_host_mode && (!mdwc->vbus_active || mdwc->in_restart)) {
|
||||
mdwc->lpm_flags |= MDWC3_POWER_COLLAPSE;
|
||||
dev_dbg(mdwc->dev, "%s: power collapse\n", __func__);
|
||||
dwc3_msm_config_gdsc(mdwc, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue