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)
commit6b7fd3128f71e8c1fa847c18be4b9a322f341ba7
tree3a96a0d96848af27bc626ba3b334b09b1f3d828b
parent1e1fab0be59217aff9378e24f94f2340fbe2c3f7
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