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

Commit 006e5fe9 authored by Jack Pham's avatar Jack Pham Committed by Zhoulu Luo
Browse files

usb: phy: qmp: Use clk_round_rate on aux_clk



On MSM8994 aux_clk supports 1.2MHz not 1.0Mhz. To simplify
having to know exactly what frequency to use, call clk_round_rate()
to get the maximum supported frequency to pass to clk_set_rate().

Change-Id: I954d36fc3dfeea3facea6b1523936b6c620627e8
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 41051d89
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -295,7 +295,7 @@ static int msm_ssphy_qmp_init_clocks(struct msm_ssphy_qmp *phy)
		ret = PTR_ERR(phy->aux_clk);
		return ret;
	}
	clk_set_rate(phy->aux_clk, 1000000);
	clk_set_rate(phy->aux_clk, clk_round_rate(phy->aux_clk, ULONG_MAX));
	clk_prepare_enable(phy->aux_clk);

	phy->cfg_ahb_clk = devm_clk_get(phy->phy.dev, "cfg_ahb_clk");