]> git.baikalelectronics.ru Git - uboot.git/commit
clk: fix set_rate to clean up cached rates for the hierarchy
authorTero Kristo <t-kristo@ti.com>
Fri, 11 Jun 2021 08:45:12 +0000 (11:45 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Fri, 11 Jun 2021 11:04:52 +0000 (16:34 +0530)
commitc58df9b89a9aec88f60e347bd02110c40682e02c
tree3a96a0d96848af27bc626ba3b334b09b1f3d828b
parent0b6f119186b0aa4554ab9273039db3361b939dbd
clk: fix set_rate to clean up cached rates for the hierarchy

Clock rates are cached within the individual clock nodes, and right now
if one changes a clock rate somewhere in the middle of the tree, none
of its child clocks notice the change. To fix this, clear up all the
cached rates for us and our child clocks.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Tero Kristo <kristo@kernel.org>
drivers/clk/clk-uclass.c