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

Commit 246d844a authored by Vamsi Krishna Samavedam's avatar Vamsi Krishna Samavedam
Browse files

qusb2: Add missing phy regulator calls in shutdown callback



dwc3 implementation sets up the phy using phy init before
adding xhci platform device. xhci platform driver also sets
up phy using init api. This causes phy ldos to be enabled
twice as phy driver does not turn off regulators in shutdown
callback. While at it, remove legacy code which disables the
phy as phy will be disabled in set_suspend callback.

Change-Id: Ic7320815000681dc0fa1da36db82705f11da8ae5
Signed-off-by: default avatarVamsi Krishna Samavedam <vskrishn@codeaurora.org>
parent 739b514f
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
@@ -507,17 +507,8 @@ static void qusb_phy_shutdown(struct usb_phy *phy)

	dev_dbg(phy->dev, "%s\n", __func__);

	qusb_phy_enable_clocks(qphy, true);

	/* Disable the PHY */
	writel_relaxed(readl_relaxed(qphy->base + qphy->phy_reg[PWR_CTRL1]) |
			PWR_CTRL1_POWR_DOWN,
			qphy->base + qphy->phy_reg[PWR_CTRL1]);

	/* Makes sure that above write goes through */
	wmb();
	qusb_phy_enable_power(qphy, false);

	qusb_phy_enable_clocks(qphy, false);
}

static u32 qusb_phy_get_linestate(struct qusb_phy *qphy)