[PATCH 05/10] clk: Add support for simple dividers
skannan at codeaurora.org
Tue Apr 19 18:28:50 EDT 2011
Sascha Hauer <s.hauer at pengutronix.de> wrote:
>On Tue, Apr 19, 2011 at 01:55:17AM -0700, Saravana Kannan wrote:
>> On Tue, April 19, 2011 12:32 am, Uwe Kleine-König wrote:
>> > Hello,
>> > On Mon, Apr 18, 2011 at 07:45:53PM -0700, Saravana Kannan wrote:
>> >> On 04/18/2011 03:07 AM, Sascha Hauer wrote:
>> >> >On Mon, Apr 18, 2011 at 11:49:09AM +0200, Uwe Kleine-König wrote:
>> >> >>On Fri, Apr 15, 2011 at 09:08:10PM +0200, Sascha Hauer wrote:
>> >> >AFAIK there are two different implementation types in the tree.
>> >> >implementations only allow to set to the exact rate round_rate
>> >> >while others round down in set_rate.
>> >> >
>> >> >Has this been specified what behaviour is expected?
>> >> >
>> >> This is something I have nagged Russell once or twice about and
>> >> sent out an email to the list for which there was very limited
>> >> response. I think clk_round_rate() is too generic and not very
>> >> useful.
>> >> We should really have something like:
>> >> clk_set_rate_range(min, ideal, max)
>> > (Note this is orthogonal to the question if set_rate may barf on
>> > other than the return values of round_rate.)
>> > clk_set_rate_range can even be implemented with clk_round_rate that
>> > just required to fulfill:
>> I think it's more important that we try to find a new API that's
>> than clk_round_rate(). We can worry about the specifics of the
>> implementation later.
>You found it and Uwe found a way to implement this ontop of the old
>that's a comfortable situation, isn't it?
Well, do we all agree to this new API? I have no problem with Uwe's helper fn or his suggestion, if we all agree on the final API. I just didn't want him wasting his time when the API is not finalized.
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.
More information about the linux-arm-kernel