Skip to content

Commit c54ce35

Browse files
tq-steinabebarino
authored andcommitted
clk: composite: Fix 'switching' to same clock
During commit 6594988 ("clk: composite: Use rate_ops.determine_rate when also a mux is available") setting req->best_parent_hw got lost, so best_parent_hw stays NULL during switch to the same parent. This results in the (debug) message: clk_calc_new_rates: lcdif_pixel not gated but wants to reparent and the following rate change is dropped. Fixes: 6594988 ("clk: composite: Use rate_ops.determine_rate when also a mux is available") Signed-off-by: Alexander Stein <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Martin Blumenstingl <[email protected]> Signed-off-by: Stephen Boyd <[email protected]>
1 parent 9af0cbe commit c54ce35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/clk/clk-composite.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ static int clk_composite_determine_rate(struct clk_hw *hw,
9797
return ret;
9898

9999
req->rate = tmp_req.rate;
100+
req->best_parent_hw = tmp_req.best_parent_hw;
100101
req->best_parent_rate = tmp_req.best_parent_rate;
101102

102103
return 0;

0 commit comments

Comments
 (0)