Quoting Maxime Ripard (2023-06-19 00:26:19) > On Mon, Jun 19, 2023 at 02:38:59AM +0300, Dmitry Osipenko wrote: > > 05.05.2023 14:26, Maxime Ripard пишет: > > > > > > diff --git a/drivers/clk/tegra/clk-super.c b/drivers/clk/tegra/clk-super.c > > > index 3f3a7a203c5f..7ec47942720c 100644 > > > --- a/drivers/clk/tegra/clk-super.c > > > +++ b/drivers/clk/tegra/clk-super.c > > > @@ -142,15 +142,22 @@ static const struct clk_ops tegra_clk_super_mux_ops = { > > > .restore_context = clk_super_mux_restore_context, > > > }; > > > > > > -static long clk_super_round_rate(struct clk_hw *hw, unsigned long rate, > > > - unsigned long *parent_rate) > > > +static int clk_super_determine_rate(struct clk_hw *hw, > > > + struct clk_rate_request *req) > > > { > > > struct tegra_clk_super_mux *super = to_clk_super_mux(hw); > > > struct clk_hw *div_hw = &super->frac_div.hw; > > > + unsigned long rate; > > > > > > __clk_hw_set_clk(div_hw, hw); > > > > > > - return super->div_ops->round_rate(div_hw, rate, parent_rate); > > > + rate = super->div_ops->round_rate(div_hw, req->rate, > > > + &req->best_parent_rate); > > > + if (rate < 0) There's the report that this condition is never possible. Maybe the previous code was relying on an error value sometimes. Can we add determine_rate to the div_ops and simplify this code? I asked on the list for that earlier.