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

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

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

parents c106a669 f5364d1f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -638,6 +638,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();