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

Commit 1a4224e2 authored by Mayank Rana's avatar Mayank Rana Committed by Matt Wagantall
Browse files

usb: phy: qusb: Keep QUSB PHY into RESET state at driver probe time



Leakage current is being observed with QUSB PHY related power rail
irrespective it is being enabled or not. QUSB PHY is out of reset
after POR. Fix this leakage current on power rail by keeping QUSB PHY
into reset. USB controller driver brings QUSB PHY out of reset after
initializing when particular USB Port related controller is enabled.

CRs-Fixed: 808445
Change-Id: I612830624ebace6e97c044b34bf48b5d8af9f034
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent bd2d7906
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -536,7 +536,13 @@ static int qusb_phy_probe(struct platform_device *pdev)
		qphy->phy.notify_disconnect     = qusb_phy_notify_disconnect;
	}

	qusb_phy_reset(&qphy->phy);
	/*
	 * QUSB PHY is required to be kept into reset to save leakage current
	 * as it is out of reset as part of Chip reset. Hence keep QUSB PHY
	 * into reset explicitly here. When Controller driver is probed, it
	 * brings QUSB PHY out of reset after initializing it.
	 */
	clk_reset(qphy->phy_reset, CLK_RESET_ASSERT);
	ret = usb_add_phy_dev(&qphy->phy);

	return ret;