Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 34681d23 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: phy: msm: Turn off HSUSB vdd LDO on OTG suspend"

parents f9ee28a8 04ddcb09
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1462,6 +1462,7 @@ phcd_retry:

	if (motg->lpm_flags & PHY_RETENTIONED ||
		(motg->caps & ALLOW_VDD_MIN_WITH_RETENTION_DISABLED)) {
		regulator_disable(hsusb_vdd);
		msm_hsusb_config_vddcx(0);
	}

@@ -1587,6 +1588,8 @@ static int msm_otg_resume(struct msm_otg *motg)
	if (motg->lpm_flags & PHY_RETENTIONED ||
		(motg->caps & ALLOW_VDD_MIN_WITH_RETENTION_DISABLED)) {
		msm_hsusb_config_vddcx(1);
		ret = regulator_enable(hsusb_vdd);
		WARN(ret, "hsusb_vdd LDO enable failed\n");
		msm_otg_disable_phy_hv_int(motg);
		msm_otg_exit_phy_retention(motg);
		motg->lpm_flags &= ~PHY_RETENTIONED;