mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
clk: composite: Fix 'switching' to same clock
During commit6594988fd6
("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:6594988fd6
("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>
This commit is contained in:
parent
9af0cbeb47
commit
c54ce35463
@ -97,6 +97,7 @@ static int clk_composite_determine_rate(struct clk_hw *hw,
|
||||
return ret;
|
||||
|
||||
req->rate = tmp_req.rate;
|
||||
req->best_parent_hw = tmp_req.best_parent_hw;
|
||||
req->best_parent_rate = tmp_req.best_parent_rate;
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user