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

Commit 5988c091 authored by Chandana Kishori Chiluveru's avatar Chandana Kishori Chiluveru Committed by Gerrit - the friendly Code Review server
Browse files

usb: phy: snps: Turn off CXO clock from msm_hsphy_dpdm_regulator_enable



dpdm_regulator_enable() function turn on the CXO clk to program the phy
registers to put PHY in non-driving mode for charger detection. In charger
connected case phy driver voting for CXO clock in dpdm_regulator_enable
but does not disabling it which is preventing the system from
vdd minimization. Hence fix this issue by turning off the CXO clk
from dpdm_regulator_enable.

Change-Id: Ib3a04eedcef625443077199d5920884f114db82d
Signed-off-by: default avatarChandana Kishori Chiluveru <cchiluve@codeaurora.org>
parent e710aa3f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -615,6 +615,7 @@ static int msm_hsphy_dpdm_regulator_enable(struct regulator_dev *rdev)
					UTMI_PHY_DATAPATH_CTRL_OVERRIDE_EN,
					UTMI_PHY_DATAPATH_CTRL_OVERRIDE_EN);

		msm_hsphy_enable_clocks(phy, false);
		phy->dpdm_enable = true;
	}
	mutex_unlock(&phy->phy_lock);
@@ -633,7 +634,6 @@ static int msm_hsphy_dpdm_regulator_disable(struct regulator_dev *rdev)
	mutex_lock(&phy->phy_lock);
	if (phy->dpdm_enable) {
		if (!phy->cable_connected) {
			msm_hsphy_enable_clocks(phy, false);
			ret = msm_hsphy_enable_power(phy, false);
			if (ret < 0) {
				mutex_unlock(&phy->phy_lock);