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

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

Merge "clk: msm: clock-pll: Always set the rate in variable-rate pll handoff"

parents 75faf32d 1846787e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -623,10 +623,9 @@ static enum handoff variable_rate_pll_handoff(struct clk *c)

	pll->src_rate = clk_get_rate(c->parent);

	if ((mode & mask) != mask)
		return HANDOFF_DISABLED_CLK;

	lval = readl_relaxed(PLL_L_REG(pll));
	if (!lval)
		return HANDOFF_DISABLED_CLK;

	c->rate = pll->src_rate * lval;

@@ -635,6 +634,9 @@ static enum handoff variable_rate_pll_handoff(struct clk *c)
		return HANDOFF_DISABLED_CLK;
	}

	if ((mode & mask) != mask)
		return HANDOFF_DISABLED_CLK;

	return HANDOFF_ENABLED_CLK;
}