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

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

Merge "USB: phy-msm-qusb: Enable autoresume only when device is connected"

parents 22a42799 1b358a8e
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -730,6 +730,7 @@ static int qusb_phy_set_suspend(struct usb_phy *phy, int suspend)
			writel_relaxed(intr_mask,
				qphy->base + QUSB2PHY_PORT_INTR_CTRL);

			if (linestate & (LINESTATE_DP | LINESTATE_DM)) {
				/* enable phy auto-resume */
				writel_relaxed(0x0C,
					qphy->base + QUSB2PHY_PORT_TEST_CTRL);
@@ -737,6 +738,7 @@ static int qusb_phy_set_suspend(struct usb_phy *phy, int suspend)
				wmb();
				writel_relaxed(0x04,
					qphy->base + QUSB2PHY_PORT_TEST_CTRL);
			}


			dev_dbg(phy->dev, "%s: intr_mask = %x\n",