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

Commit 6e58254f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 91ff22ad 125650f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,6 +594,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);
@@ -612,7 +613,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);