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

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

Merge "usb: phy: qmp: Do not reset phy mode in DP+USB concurrent mode"

parents 276c45c7 bb034e29
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -684,7 +684,9 @@ static int msm_ssphy_qmp_set_suspend(struct usb_phy *uphy, int suspend)
		if (phy->cable_connected) {
			msm_ssusb_qmp_enable_autonomous(phy, 1);
		} else {
			if (uphy->type  == USB_PHY_TYPE_USB3_AND_DP)
			/* Reset phy mode to USB only if DP not connected */
			if (uphy->type  == USB_PHY_TYPE_USB3_AND_DP &&
				!(phy->phy.flags & PHY_USB_DP_CONCURRENT_MODE))
				msm_ssphy_qmp_setmode(phy, USB3_MODE);
			writel_relaxed(0x00,
			phy->base + phy->phy_reg[USB3_PHY_POWER_DOWN_CONTROL]);