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

Commit 8d2f3026 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 a20ae3e5 46a0144a
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -572,11 +572,15 @@ static int qusb_phy_set_suspend(struct usb_phy *phy, int suspend)
				qphy->base +
				qphy->phy_reg[PLL_CORE_INPUT_OVERRIDE]);

			if (linestate & (LINESTATE_DP | LINESTATE_DM)) {
				/* enable phy auto-resume */
			writel_relaxed(0x91, qphy->base + qphy->phy_reg[TEST1]);
				writel_relaxed(0x91,
					qphy->base + qphy->phy_reg[TEST1]);
				/* flush the previous write before next write */
				wmb();
			writel_relaxed(0x90, qphy->base + qphy->phy_reg[TEST1]);
				writel_relaxed(0x90,
					qphy->base + qphy->phy_reg[TEST1]);
			}

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