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

Commit 9a74724c 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-v2: Enable autoresume only when device is connected"

parents b0e2239e 92e1592c
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -652,6 +652,8 @@ static int qusb_phy_set_suspend(struct usb_phy *phy, int suspend)
			writel_relaxed(intr_mask,
				qphy->base + QUSB2PHY_INTR_CTRL);

			if (linestate & (LINESTATE_DP | LINESTATE_DM)) {

				/* enable phy auto-resume */
				writel_relaxed(0x91,
					qphy->base + QUSB2PHY_TEST1);
@@ -659,6 +661,7 @@ static int qusb_phy_set_suspend(struct usb_phy *phy, int suspend)
				wmb();
				writel_relaxed(0x90,
					qphy->base + QUSB2PHY_TEST1);
			}

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