[PATCH 01/15] clk: sunxi-ng: Add check for minimal rate to NM PLLs
wens at csie.org
Mon Feb 26 02:28:43 PST 2018
On Mon, Feb 26, 2018 at 6:25 PM, Maxime Ripard
<maxime.ripard at bootlin.com> wrote:
> On Mon, Feb 26, 2018 at 05:43:01PM +0800, Chen-Yu Tsai wrote:
>> On Mon, Feb 26, 2018 at 5:38 PM, Maxime Ripard
>> <maxime.ripard at bootlin.com> wrote:
>> > Hi,
>> > On Sat, Feb 24, 2018 at 10:45:31PM +0100, Jernej Skrabec wrote:
>> >> Some NM PLLs doesn't work well when their output clock rate is set below
>> >> certain rate.
>> >> Add support for that constrain.
>> > In such a case, you should round the rate to the minimum the clock can
>> > operate at, and not return an error.
>> That's true for round_rate. But what's the expected behavior of set_rate?
>> AFAIK we presume all users call round_rate before set_rate, but that doesn't
>> seem to be true all the time.
> One of the first things that happens during a set_rate is a round_rate:
Ah! This was added recently in commit ca5e089a32c5 ("clk: use round rate
to bail out early in set_rate").
Thanks for the tip!
More information about the linux-arm-kernel