To solve the problem of unordered setting of div & mux, after solving the problem, the frequency will be set to mux first, and then div

Signed-off-by: zhengshaobo1 <zhengshaobo1@xiaomi.com>
This commit is contained in:
zhengshaobo1 2023-08-29 19:27:11 +08:00 committed by Petro Karashchenko
parent f6ba2970e0
commit 09a81017b8

View File

@ -491,18 +491,6 @@ static void clk_change_rate(FAR struct clk_s *clk, uint32_t best_parent_rate)
FAR struct clk_s *old_parent;
bool skip_set_rate = false;
list_for_every_entry(&clk->children, child, struct clk_s, node)
{
if (child->new_parent && child->new_parent != clk)
{
continue;
}
if (child->new_rate > __clk_get_rate(child))
{
clk_change_rate(child, clk->new_rate);
}
}
old_parent = clk->parent;
if (clk->new_parent && clk->new_parent != clk->parent)