Re: Meaning of clk_round_rate()?

2010-07-14 Thread Saravana Kannan
Russell King - ARM Linux wrote: On Wed, Jul 14, 2010 at 11:05:46AM -0700, Stephen Boyd wrote: clk_round_rate() returns the clock rate which will be set if you ask clk_set_rate() to set that rate. It provides a way to query from the implementation exactly what rate you'll get if you use clk_set_r

Re: Meaning of clk_round_rate()?

2010-07-14 Thread Stephen Boyd
On 07/14/2010 01:03 PM, Russell King - ARM Linux wrote: clk_round_rate() returns the clock rate which will be set if you ask clk_set_rate() to set that rate. It provides a way to query from the implementation exactly what rate you'll get if you use clk_set_rate() with that same argument. So es

Re: Meaning of clk_round_rate()?

2010-07-14 Thread Russell King - ARM Linux
On Wed, Jul 14, 2010 at 11:05:46AM -0700, Stephen Boyd wrote: > What is the meaning of clk_round_rate() in the clk API > (include/linux/clk.h)? The function documentation says "adjust a rate to > the exact rate a clock can provide". That seems pretty vague. I'm lea

Meaning of clk_round_rate()?

2010-07-14 Thread Stephen Boyd
What is the meaning of clk_round_rate() in the clk API (include/linux/clk.h)? The function documentation says "adjust a rate to the exact rate a clock can provide". That seems pretty vague. I'm lead to believe that it rounds the rate to the closest rate supported. Is that co