Loading drivers/usb/phy/phy-msm-usb.c +4 −7 Original line number Diff line number Diff line Loading @@ -817,7 +817,9 @@ static void msm_otg_kick_sm_work(struct msm_otg *motg) if (atomic_read(&motg->in_lpm)) motg->resume_pending = true; if (atomic_read(&motg->pm_suspended)) { /* For device mode, resume now. Let pm_resume handle other cases */ if (atomic_read(&motg->pm_suspended) && motg->phy.state != OTG_STATE_B_SUSPEND) { motg->sm_work_pending = true; } else if (!motg->sm_work_pending) { /* process event only if previous one is not pending */ Loading Loading @@ -5237,13 +5239,8 @@ static int msm_otg_pm_resume(struct device *dev) if (motg->resume_pending || motg->phy_irq_pending) { msm_otg_dbg_log_event(&motg->phy, "PM RESUME BY USB", motg->async_int, motg->resume_pending); /* Bring hardware out of LPM asap, sm_work can handle the rest*/ msm_otg_resume(motg); /* sm work will start in pm notify */ /* sm work if pending will start in pm notify to exit LPM */ } msm_otg_dbg_log_event(&motg->phy, "PM RESUME DONE", get_pm_runtime_counter(dev), motg->async_int); return ret; } Loading Loading
drivers/usb/phy/phy-msm-usb.c +4 −7 Original line number Diff line number Diff line Loading @@ -817,7 +817,9 @@ static void msm_otg_kick_sm_work(struct msm_otg *motg) if (atomic_read(&motg->in_lpm)) motg->resume_pending = true; if (atomic_read(&motg->pm_suspended)) { /* For device mode, resume now. Let pm_resume handle other cases */ if (atomic_read(&motg->pm_suspended) && motg->phy.state != OTG_STATE_B_SUSPEND) { motg->sm_work_pending = true; } else if (!motg->sm_work_pending) { /* process event only if previous one is not pending */ Loading Loading @@ -5237,13 +5239,8 @@ static int msm_otg_pm_resume(struct device *dev) if (motg->resume_pending || motg->phy_irq_pending) { msm_otg_dbg_log_event(&motg->phy, "PM RESUME BY USB", motg->async_int, motg->resume_pending); /* Bring hardware out of LPM asap, sm_work can handle the rest*/ msm_otg_resume(motg); /* sm work will start in pm notify */ /* sm work if pending will start in pm notify to exit LPM */ } msm_otg_dbg_log_event(&motg->phy, "PM RESUME DONE", get_pm_runtime_counter(dev), motg->async_int); return ret; } Loading