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 <alexander.stein@ew.tq-group.com> Link: https://lore.kernel.org/r/20211103122441.3208576-1-alexander.stein@ew.tq-group.com Reviewed-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 9af0cbe commit c54ce35

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)