clk: Expose clk_hw_reparent() to providers
To be used by clock implementations for switching to a new parent during rate change. Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:

committed by
Thierry Reding

parent
07aaa0e563
commit
42c86547f4
@@ -2020,6 +2020,14 @@ static void clk_core_reparent(struct clk_core *clk,
|
||||
__clk_recalc_rates(clk, POST_RATE_CHANGE);
|
||||
}
|
||||
|
||||
void clk_hw_reparent(struct clk_hw *hw, struct clk_hw *new_parent)
|
||||
{
|
||||
if (!hw)
|
||||
return;
|
||||
|
||||
clk_core_reparent(hw->core, !new_parent ? NULL : new_parent->core);
|
||||
}
|
||||
|
||||
/**
|
||||
* clk_has_parent - check if a clock is a possible parent for another
|
||||
* @clk: clock source
|
||||
|
Reference in New Issue
Block a user