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

Commit 59a6c2eb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge " clk: qcom: clk-alpha: Update round_rate to return minimal rate"

parents 5feb6f82 1464460d
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -729,9 +729,7 @@ static long clk_alpha_pll_round_rate(struct clk_hw *hw, unsigned long rate,
		return pll->min_supported_freq;

	rate = alpha_pll_round_rate(pll, rate, *prate, &l, &a);
	if ((pll->type == ALPHA_PLL && alpha_pll_find_vco(pll, rate)) ||
		(pll->type == FABIA_PLL || alpha_pll_find_vco(pll, rate))
		|| pll->type == AGERA_PLL)
	if (!pll->vco_table || alpha_pll_find_vco(pll, rate))
		return rate;

	min_freq = pll->vco_table[0].min_freq;