Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-25 Thread Maxime Ripard
Hi, On Thu, Feb 24, 2022 at 02:32:37PM -0800, Stephen Boyd wrote: > Quoting Maxime Ripard (2022-02-21 08:18:21) > > Hi, > > > > On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > > > Quoting Maxime Ripard (2022-01-25 06:15:41) > > > > The current core while setting the min and max ra

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-25 Thread Maxime Ripard
Hi, On Thu, Feb 24, 2022 at 02:39:20PM -0800, Stephen Boyd wrote: > Quoting Maxime Ripard (2022-02-21 08:43:23) > > Hi again, > > > > On Mon, Feb 21, 2022 at 05:18:21PM +0100, Maxime Ripard wrote: > > > On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > > > > Quoting Maxime Ripard (2

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-24 Thread Stephen Boyd
Quoting Maxime Ripard (2022-02-21 08:43:23) > Hi again, > > On Mon, Feb 21, 2022 at 05:18:21PM +0100, Maxime Ripard wrote: > > On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > > > Quoting Maxime Ripard (2022-01-25 06:15:41) > > > > +/* > > > > + * Test that if our clock has some bou

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-24 Thread Stephen Boyd
Quoting Maxime Ripard (2022-02-21 08:18:21) > Hi, > > On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > > Quoting Maxime Ripard (2022-01-25 06:15:41) > > > The current core while setting the min and max rate properly in the > > > clk_request structure will not make sure that the requ

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-21 Thread Maxime Ripard
Hi again, On Mon, Feb 21, 2022 at 05:18:21PM +0100, Maxime Ripard wrote: > On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > > Quoting Maxime Ripard (2022-01-25 06:15:41) > > > +/* > > > + * Test that if our clock has some boundaries and we try to round a rate > > > + * lower than th

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-21 Thread Maxime Ripard
Hi, On Fri, Feb 18, 2022 at 03:15:06PM -0800, Stephen Boyd wrote: > Quoting Maxime Ripard (2022-01-25 06:15:41) > > The current core while setting the min and max rate properly in the > > clk_request structure will not make sure that the requested rate is > > within these boundaries, leaving it to

Re: [PATCH v4 02/10] clk: Always clamp the rounded rate

2022-02-18 Thread Stephen Boyd
Quoting Maxime Ripard (2022-01-25 06:15:41) > The current core while setting the min and max rate properly in the > clk_request structure will not make sure that the requested rate is > within these boundaries, leaving it to each and every driver to make > sure it is. It would be good to describe

[PATCH v4 02/10] clk: Always clamp the rounded rate

2022-01-25 Thread Maxime Ripard
The current core while setting the min and max rate properly in the clk_request structure will not make sure that the requested rate is within these boundaries, leaving it to each and every driver to make sure it is. Add a clamp call to make sure it's always done, and add a few unit tests to make