mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
sh: clkfwk: Support multi-level clock propagation.
Currently clock propagation only works for one level, but we have some clocks which need to propagate multiple levels, so make this recursive. Signed-off-by: Stuart Menefy <stuart.menefy@st.com> Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
675bd7804c
commit
24eb17e081
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ static void propagate_rate(struct clk *clk)
|
|||
continue;
|
||||
if (likely(clkp->ops && clkp->ops->recalc))
|
||||
clkp->ops->recalc(clkp);
|
||||
if (unlikely(clkp->flags & CLK_RATE_PROPAGATES))
|
||||
propagate_rate(clkp);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue