Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1441027 > unrolled thread

Re: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks

Started byFabio Estevam <festevam@gmail.com>
First post2016-07-12 04:20 +0200
Last post2016-07-13 00:30 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks Fabio Estevam <festevam@gmail.com> - 2016-07-12 04:20 +0200
    Re: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks Fabio Estevam <festevam@gmail.com> - 2016-07-13 00:30 +0200

#1441027 — Re: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks

FromFabio Estevam <festevam@gmail.com>
Date2016-07-12 04:20 +0200
SubjectRe: [PATCH v2] clk: imx7d: do not set parent of ethernet time/ref clocks
Message-ID<rTVsJ-760-13@gated-at.bofh.it>
Hi Mike,

On Wed, Jul 6, 2016 at 9:53 PM, Michael Turquette
<mturquette@baylibre.com> wrote:
> Quoting Stefan Agner (2016-07-03 10:48:13)
>> All device trees currently in mainline specify the time clock parent
>> using the assigned-clocks/assigned-clock-parents method, there is no
>> need to statically assign the parent in the core clock driver.
>> Also all current boards provide an Ethernet reference clock for the
>> PHY externally, hence configuring the internal PHY reference clock.
>>
>> Furthermore, and the actual driver of this patch, specify ethernet
>> related parents at that early point in boot leads to a warning:
>> bad: scheduling from the idle thread!
>>
>> The reason for the warning is that setting the parent enables the ENET
>> PLL since we are using CLK_OPS_PARENT_ENABLE. Enabling the ENET PLL can
>> cause clk_pllv3_wait_lock to sleep. See also:
>> commit fc8726a2c021 ("clk: core: support clocks which requires parents
>> enable (part 2)").
>>
>> Note that setting the ENET AXI root clock parent also requires ENET
>> PLL to be enabled. However, U-Boot typically leaves the ENET PLL on,
>> hence when the framework sets the parent of the first clock, it does
>> not need to wait for the PLL to come up. But because there is currently
>> no user of that clock, the PLL gets disabled after setting the parent.
>> Therefore, subsequent reparenting calls of any clock which somehow rely
>> on the ENET PLL, need to reenable the ENET PLL which leads to a sleep.
>> Removing those subsequent reparenting calls works around this issue.
>>
>> Also remove comments. The code is really verbose enough.
>>
>> Signed-off-by: Stefan Agner <stefan@agner.ch>
>
> Applied.

I still don't see this patch applied in clk-next.

[toc] | [next] | [standalone]


#1441807

FromFabio Estevam <festevam@gmail.com>
Date2016-07-13 00:30 +0200
Message-ID<rUelI-2F3-13@gated-at.bofh.it>
In reply to#1441027
On Tue, Jul 12, 2016 at 7:14 PM, Michael Turquette
<mturquette@baylibre.com> wrote:

> It should show up now on the mirror.

Yes, it is there now. Thanks!

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web