Skip to content

Commit be8fa5f

Browse files
mszyprowbebarino
authored andcommitted
clk: Fix best_parent_rate after moving code into a separate function
best_parent_rate entry is still being used in the code and needs to be always updated regardless of the CLK_SET_RATE_NO_REPARENT flag. Fixes: 1b4e99f ("clk: Move no reparent case into a separate function") Signed-off-by: Marek Szyprowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 326cc42 commit be8fa5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,7 @@ clk_core_determine_rate_no_reparent(struct clk_hw *hw,
629629
best = clk_core_get_rate_nolock(core);
630630
}
631631

632+
req->best_parent_rate = best;
632633
req->rate = best;
633634

634635
return 0;

0 commit comments

Comments
 (0)