Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-07-01 Thread Sören Brinkmann
Hi Uwe, On Tue, 2014-07-01 at 10:23AM +0200, Uwe Kleine-König wrote: > On Mon, Jun 30, 2014 at 09:56:33AM -0700, Soren Brinkmann wrote: > > Introduce a new API function to find the rate a clock can provide which > > is closest to a given rate. > > > > clk_round_rate() leaves it to the clock drive

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-07-01 Thread Uwe Kleine-König
On Mon, Jun 30, 2014 at 09:56:33AM -0700, Soren Brinkmann wrote: > Introduce a new API function to find the rate a clock can provide which > is closest to a given rate. > > clk_round_rate() leaves it to the clock driver how rounding is done. > Commonly implementations round down due to use-cases t

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-07-01 Thread Boris BREZILLON
On Tue, 1 Jul 2014 08:32:14 +0200 Boris BREZILLON wrote: > Hi Sören, > > On Mon, 30 Jun 2014 17:12:23 -0700 > Sören Brinkmann wrote: > > > Hi Boris, > > > > On Mon, 2014-06-30 at 09:27PM +0200, Boris BREZILLON wrote: > > > Hello Soren, > > > > > > On Mon, 30 Jun 2014 09:56:33 -0700 > > > Sor

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-06-30 Thread Boris BREZILLON
Hi Sören, On Mon, 30 Jun 2014 17:12:23 -0700 Sören Brinkmann wrote: > Hi Boris, > > On Mon, 2014-06-30 at 09:27PM +0200, Boris BREZILLON wrote: > > Hello Soren, > > > > On Mon, 30 Jun 2014 09:56:33 -0700 > > Soren Brinkmann wrote: > > > > > Introduce a new API function to find the rate a clo

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-06-30 Thread Sören Brinkmann
Hi Boris, On Mon, 2014-06-30 at 09:27PM +0200, Boris BREZILLON wrote: > Hello Soren, > > On Mon, 30 Jun 2014 09:56:33 -0700 > Soren Brinkmann wrote: > > > Introduce a new API function to find the rate a clock can provide > > which is closest to a given rate. > > > > clk_round_rate() leaves it

Re: [PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-06-30 Thread Boris BREZILLON
Hello Soren, On Mon, 30 Jun 2014 09:56:33 -0700 Soren Brinkmann wrote: > Introduce a new API function to find the rate a clock can provide > which is closest to a given rate. > > clk_round_rate() leaves it to the clock driver how rounding is done. > Commonly implementations round down due to us

[PATCH 1/4] clk: Introduce 'clk_find_nearest_rate()'

2014-06-30 Thread Soren Brinkmann
Introduce a new API function to find the rate a clock can provide which is closest to a given rate. clk_round_rate() leaves it to the clock driver how rounding is done. Commonly implementations round down due to use-cases that have a certain frequency maximum that must not be exceeded. The new AP