Re: [PATCH v6 05/12] clk: Use clamp instead of open-coding our own

2022-02-24 Thread Stephen Boyd
Quoting Maxime Ripard (2022-02-23 02:55:53) > The code in clk_set_rate_range() will, if the current rate is outside of > the new range, will force it to the minimum or maximum. s/will// > > Since it's running under the condition that the rate is either lower > than the minimum, or higher than th

[PATCH v6 05/12] clk: Use clamp instead of open-coding our own

2022-02-23 Thread Maxime Ripard
The code in clk_set_rate_range() will, if the current rate is outside of the new range, will force it to the minimum or maximum. Since it's running under the condition that the rate is either lower than the minimum, or higher than the maximum, this is equivalent to using clamp, while being less re