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

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

Merge "qmp-phy: Power down PHY durng disconnect to avoid leakage"

parents 3e93d321 bfec3e84
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -657,6 +657,9 @@ static int msm_ssphy_qmp_set_suspend(struct usb_phy *uphy, int suspend)
	if (suspend) {
		if (phy->cable_connected)
			msm_ssusb_qmp_enable_autonomous(phy, 1);
		else
			writel_relaxed(0x00,
			phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]);

		/* Make sure above write completed with PHY */
		wmb();