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

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

Merge "usb: qmp: phy: Turn ON PIPE3 clock branch before QMP PHY power up"

parents 73dde4f7 9fa944be
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -503,6 +503,9 @@ static int msm_ssphy_qmp_init(struct usb_phy *uphy)
			clk_prepare_enable(phy->ref_clk);
		clk_prepare_enable(phy->aux_clk);
		clk_prepare_enable(phy->cfg_ahb_clk);
		clk_set_rate(phy->pipe_clk, 125000000);
		clk_prepare_enable(phy->pipe_clk);
		phy->clk_enabled = true;
	}

	/* Rev ID is made up each of the LSBs of REVISION_ID[0-3] */
@@ -542,12 +545,6 @@ static int msm_ssphy_qmp_init(struct usb_phy *uphy)
	/* Make sure that above write completed to get PHY into POWER DOWN */
	mb();

	if (!phy->clk_enabled) {
		clk_set_rate(phy->pipe_clk, 125000000);
		clk_prepare_enable(phy->pipe_clk);
		phy->clk_enabled = true;
	}

	/* Main configuration */
	ret = configure_phy_regs(uphy, reg);
	if (ret) {