Loading drivers/usb/phy/phy-msm-usb.c +4 −0 Original line number Diff line number Diff line Loading @@ -2564,12 +2564,15 @@ static void msm_otg_wait_for_ext_chg_done(struct msm_otg *motg) if (motg->ext_chg_active) { do_wait: pr_debug("before msm_otg ext chg wait\n"); t = wait_for_completion_timeout(&motg->ext_chg_wait, msecs_to_jiffies(3000)); if (!t) pr_err("msm_otg ext chg wait timeout\n"); else if (motg->ext_chg_active) goto do_wait; else pr_debug("msm_otg ext chg wait done\n"); } Loading Loading @@ -4114,6 +4117,7 @@ msm_otg_ext_chg_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s: LPM block request %d\n", __func__, val); if (val) { /* block LPM */ if (motg->chg_type == USB_DCP_CHARGER) { motg->ext_chg_active = true; /* * If device is already suspended, resume it. * The PM usage counter is incremented in Loading Loading
drivers/usb/phy/phy-msm-usb.c +4 −0 Original line number Diff line number Diff line Loading @@ -2564,12 +2564,15 @@ static void msm_otg_wait_for_ext_chg_done(struct msm_otg *motg) if (motg->ext_chg_active) { do_wait: pr_debug("before msm_otg ext chg wait\n"); t = wait_for_completion_timeout(&motg->ext_chg_wait, msecs_to_jiffies(3000)); if (!t) pr_err("msm_otg ext chg wait timeout\n"); else if (motg->ext_chg_active) goto do_wait; else pr_debug("msm_otg ext chg wait done\n"); } Loading Loading @@ -4114,6 +4117,7 @@ msm_otg_ext_chg_ioctl(struct file *file, unsigned int cmd, unsigned long arg) pr_debug("%s: LPM block request %d\n", __func__, val); if (val) { /* block LPM */ if (motg->chg_type == USB_DCP_CHARGER) { motg->ext_chg_active = true; /* * If device is already suspended, resume it. * The PM usage counter is incremented in Loading