All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tero Kristo <t-kristo@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: <linux-clk@vger.kernel.org>, <linux-omap@vger.kernel.org>,
	<sboyd@codeaurora.org>, <mturquette@baylibre.com>,
	<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCHv2 8/9] ARM: dts: omap4: add clkctrl nodes
Date: Mon, 20 Mar 2017 16:52:11 +0200	[thread overview]
Message-ID: <3a82add5-7d85-458c-f8c1-9e58db6a8949@ti.com> (raw)
In-Reply-To: <20170320143538.GH20572@atomide.com>

On 20/03/17 16:35, Tony Lindgren wrote:
> * Tero Kristo <t-kristo@ti.com> [170320 06:27]:
>> On 17/03/17 23:41, Tero Kristo wrote:
>>> On 17/03/17 17:43, Tony Lindgren wrote:
>>>> * Tero Kristo <t-kristo@ti.com> [170317 02:12]:
>>>>> Add clkctrl nodes for OMAP4 SoC. These are going to be acting as
>>>>> replacement for part of the existing clock data and the existing
>>>>> clkctrl hooks under hwmod data.
>>>>
>>>> It seems to be actually this patch in the series that breaks booting
>>>> if the last patch in this series is not applied.
>>>
>>> Yea I guess we need to squash this and patch #9, I'll double check next
>>> week. Sorry about not catching this one.
>>
>> Yes, patch #8 and #9 must be squashed. What happens with patch #8 alone, is
>> that you get all the clkctrl clocks registered, but as nobody is using them,
>> the clock core disables them later on in clk_disable_unused.
>
> So how hard would it to do a mixed approach where we don't need
> to have everything in place in the dts in order to flip a SoC?
>
> This atomic transaction worries me..

Well, you could do few things.

- You can use clk_ignore_unused cmdline option between patch #8 and #9 
and it should work, but will most likely break PM.
- You can introduce the DTS changes on a clkctrl module basis, e.g. 
introduce the node for l4_per_clkctrl along with the clock node changes 
for the same
- Do some sort of split between DTS / vs. clkctrl data introduction 
within the clock driver, this forces the files to be in sync with each 
other though.
- Try parsing the DTs for matching clock handles while registering DT 
clocks, if not found, toss our a pr_warn and skip registering the clock. 
Will be very ineffective though as one needs to parse the whole DTS to 
find the clock entries. This clock parsing could be dropped later.

-Tero

WARNING: multiple messages have this Message-ID (diff)
From: Tero Kristo <t-kristo@ti.com>
To: Tony Lindgren <tony@atomide.com>
Cc: mturquette@baylibre.com, linux-omap@vger.kernel.org,
	sboyd@codeaurora.org, linux-clk@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCHv2 8/9] ARM: dts: omap4: add clkctrl nodes
Date: Mon, 20 Mar 2017 16:52:11 +0200	[thread overview]
Message-ID: <3a82add5-7d85-458c-f8c1-9e58db6a8949@ti.com> (raw)
In-Reply-To: <20170320143538.GH20572@atomide.com>

On 20/03/17 16:35, Tony Lindgren wrote:
> * Tero Kristo <t-kristo@ti.com> [170320 06:27]:
>> On 17/03/17 23:41, Tero Kristo wrote:
>>> On 17/03/17 17:43, Tony Lindgren wrote:
>>>> * Tero Kristo <t-kristo@ti.com> [170317 02:12]:
>>>>> Add clkctrl nodes for OMAP4 SoC. These are going to be acting as
>>>>> replacement for part of the existing clock data and the existing
>>>>> clkctrl hooks under hwmod data.
>>>>
>>>> It seems to be actually this patch in the series that breaks booting
>>>> if the last patch in this series is not applied.
>>>
>>> Yea I guess we need to squash this and patch #9, I'll double check next
>>> week. Sorry about not catching this one.
>>
>> Yes, patch #8 and #9 must be squashed. What happens with patch #8 alone, is
>> that you get all the clkctrl clocks registered, but as nobody is using them,
>> the clock core disables them later on in clk_disable_unused.
>
> So how hard would it to do a mixed approach where we don't need
> to have everything in place in the dts in order to flip a SoC?
>
> This atomic transaction worries me..

Well, you could do few things.

- You can use clk_ignore_unused cmdline option between patch #8 and #9 
and it should work, but will most likely break PM.
- You can introduce the DTS changes on a clkctrl module basis, e.g. 
introduce the node for l4_per_clkctrl along with the clock node changes 
for the same
- Do some sort of split between DTS / vs. clkctrl data introduction 
within the clock driver, this forces the files to be in sync with each 
other though.
- Try parsing the DTs for matching clock handles while registering DT 
clocks, if not found, toss our a pr_warn and skip registering the clock. 
Will be very ineffective though as one needs to parse the whole DTS to 
find the clock entries. This clock parsing could be dropped later.

-Tero

WARNING: multiple messages have this Message-ID (diff)
From: t-kristo@ti.com (Tero Kristo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2 8/9] ARM: dts: omap4: add clkctrl nodes
Date: Mon, 20 Mar 2017 16:52:11 +0200	[thread overview]
Message-ID: <3a82add5-7d85-458c-f8c1-9e58db6a8949@ti.com> (raw)
In-Reply-To: <20170320143538.GH20572@atomide.com>

On 20/03/17 16:35, Tony Lindgren wrote:
> * Tero Kristo <t-kristo@ti.com> [170320 06:27]:
>> On 17/03/17 23:41, Tero Kristo wrote:
>>> On 17/03/17 17:43, Tony Lindgren wrote:
>>>> * Tero Kristo <t-kristo@ti.com> [170317 02:12]:
>>>>> Add clkctrl nodes for OMAP4 SoC. These are going to be acting as
>>>>> replacement for part of the existing clock data and the existing
>>>>> clkctrl hooks under hwmod data.
>>>>
>>>> It seems to be actually this patch in the series that breaks booting
>>>> if the last patch in this series is not applied.
>>>
>>> Yea I guess we need to squash this and patch #9, I'll double check next
>>> week. Sorry about not catching this one.
>>
>> Yes, patch #8 and #9 must be squashed. What happens with patch #8 alone, is
>> that you get all the clkctrl clocks registered, but as nobody is using them,
>> the clock core disables them later on in clk_disable_unused.
>
> So how hard would it to do a mixed approach where we don't need
> to have everything in place in the dts in order to flip a SoC?
>
> This atomic transaction worries me..

Well, you could do few things.

- You can use clk_ignore_unused cmdline option between patch #8 and #9 
and it should work, but will most likely break PM.
- You can introduce the DTS changes on a clkctrl module basis, e.g. 
introduce the node for l4_per_clkctrl along with the clock node changes 
for the same
- Do some sort of split between DTS / vs. clkctrl data introduction 
within the clock driver, this forces the files to be in sync with each 
other though.
- Try parsing the DTs for matching clock handles while registering DT 
clocks, if not found, toss our a pr_warn and skip registering the clock. 
Will be very ineffective though as one needs to parse the whole DTS to 
find the clock entries. This clock parsing could be dropped later.

-Tero

  reply	other threads:[~2017-03-20 14:52 UTC|newest]

Thread overview: 129+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-17  9:09 [PATCHv2 0/9] clk: ti: add support for clkctrl clocks Tero Kristo
2017-03-17  9:09 ` Tero Kristo
2017-03-17  9:09 ` Tero Kristo
2017-03-17  9:09 ` [PATCHv2 1/9] Documentation: dt-bindings: Add binding documentation for TI " Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17 14:18   ` Tony Lindgren
2017-03-17 14:18     ` Tony Lindgren
2017-03-17 14:18     ` Tony Lindgren
2017-03-17 15:01     ` Tero Kristo
2017-03-17 15:01       ` Tero Kristo
2017-03-17 15:01       ` Tero Kristo
2017-03-17  9:09 ` [PATCHv2 2/9] clk: ti: add support for " Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09 ` [PATCHv2 3/9] dt-bindings: clk: add omap4 clkctrl definitions Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-04-24 21:49   ` Tony Lindgren
2017-04-24 21:49     ` Tony Lindgren
2017-03-17  9:09 ` [PATCHv2 4/9] clk: ti: omap4: add clkctrl clock data Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09 ` [PATCHv2 5/9] ARM: OMAP2+: hwmod: assign main clock from DT if available Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17 15:41   ` Tony Lindgren
2017-03-17 15:41     ` Tony Lindgren
2017-03-17 21:40     ` Tero Kristo
2017-03-17 21:40       ` Tero Kristo
2017-03-17 21:40       ` Tero Kristo
2017-03-17 22:17       ` Tony Lindgren
2017-03-17 22:17         ` Tony Lindgren
2017-03-17 22:17         ` Tony Lindgren
2017-03-20 13:23         ` Tero Kristo
2017-03-20 13:23           ` Tero Kristo
2017-03-20 13:23           ` Tero Kristo
2017-03-20 14:34           ` Tony Lindgren
2017-03-20 14:34             ` Tony Lindgren
2017-03-20 14:34             ` Tony Lindgren
2017-03-20 14:36             ` Tony Lindgren
2017-03-20 14:36               ` Tony Lindgren
2017-03-17  9:09 ` [PATCHv2 6/9] ARM: OMAP2+: timer: add support for fetching fck handle from DT Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17 15:41   ` Tony Lindgren
2017-03-17 15:41     ` Tony Lindgren
2017-03-17  9:09 ` [PATCHv2 7/9] ARM: dts: omap4: add bus functionality to base PRCM nodes Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09 ` [PATCHv2 8/9] ARM: dts: omap4: add clkctrl nodes Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17 15:43   ` Tony Lindgren
2017-03-17 15:43     ` Tony Lindgren
2017-03-17 21:41     ` Tero Kristo
2017-03-17 21:41       ` Tero Kristo
2017-03-17 21:41       ` Tero Kristo
2017-03-20 13:25       ` Tero Kristo
2017-03-20 13:25         ` Tero Kristo
2017-03-20 13:25         ` Tero Kristo
2017-03-20 14:35         ` Tony Lindgren
2017-03-20 14:35           ` Tony Lindgren
2017-03-20 14:35           ` Tony Lindgren
2017-03-20 14:52           ` Tero Kristo [this message]
2017-03-20 14:52             ` Tero Kristo
2017-03-20 14:52             ` Tero Kristo
2017-03-20 15:07             ` Tony Lindgren
2017-03-20 15:07               ` Tony Lindgren
2017-03-20 15:07               ` Tony Lindgren
2017-03-17  9:09 ` [PATCHv2 9/9] ARM: dts: omap4: convert to use the new clkctrl clocks for the drivers Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-17  9:09   ` Tero Kristo
2017-03-28  0:18   ` Tony Lindgren
2017-03-28  0:18     ` Tony Lindgren
2017-03-28  0:18     ` Tony Lindgren
2017-03-28  5:44     ` Tero Kristo
2017-03-28  5:44       ` Tero Kristo
2017-03-28  5:44       ` Tero Kristo
2017-03-28 15:03       ` Tony Lindgren
2017-03-28 15:03         ` Tony Lindgren
2017-03-28 15:03         ` Tony Lindgren
2017-03-30  7:33         ` Tero Kristo
2017-03-30  7:33           ` Tero Kristo
2017-03-30  7:33           ` Tero Kristo
2017-04-03 14:16           ` Tony Lindgren
2017-04-03 14:16             ` Tony Lindgren
2017-03-17 15:25 ` [PATCHv2 0/9] clk: ti: add support for clkctrl clocks Tony Lindgren
2017-03-17 15:25   ` Tony Lindgren
2017-03-17 21:37   ` Tero Kristo
2017-03-17 21:37     ` Tero Kristo
2017-03-17 21:37     ` Tero Kristo
2017-03-23  1:00     ` Tony Lindgren
2017-03-23  1:00       ` Tony Lindgren
2017-03-23 17:02       ` Tony Lindgren
2017-03-23 17:02         ` Tony Lindgren
2017-03-23 17:02         ` Tony Lindgren
2017-03-28  5:41         ` Tero Kristo
2017-03-28  5:41           ` Tero Kristo
2017-03-28  5:41           ` Tero Kristo
2017-03-30  7:18         ` Tero Kristo
2017-03-30  7:18           ` Tero Kristo
2017-03-30  7:18           ` Tero Kristo
2017-03-30 16:54           ` Tony Lindgren
2017-03-30 16:54             ` Tony Lindgren
2017-04-03 14:51             ` Tero Kristo
2017-04-03 14:51               ` Tero Kristo
2017-04-03 14:51               ` Tero Kristo
2017-04-03 15:36               ` Tony Lindgren
2017-04-03 15:36                 ` Tony Lindgren
2017-04-03 15:36                 ` Tony Lindgren
2017-04-05 16:59                 ` Tero Kristo
2017-04-05 16:59                   ` Tero Kristo
2017-04-05 16:59                   ` Tero Kristo
2017-04-06 16:49                 ` Tero Kristo
2017-04-06 16:49                   ` Tero Kristo
2017-04-06 16:49                   ` Tero Kristo
2017-04-07 16:47                   ` Tony Lindgren
2017-04-07 16:47                     ` Tony Lindgren
2017-04-10  7:31                     ` Tero Kristo
2017-04-10  7:31                       ` Tero Kristo
2017-04-10  7:31                       ` Tero Kristo
2017-04-10 16:18                       ` Tony Lindgren
2017-04-10 16:18                         ` Tony Lindgren
2017-04-10 18:33                         ` Tero Kristo
2017-04-10 18:33                           ` Tero Kristo
2017-04-10 18:33                           ` Tero Kristo
2017-04-11 16:24                           ` Tony Lindgren
2017-04-11 16:24                             ` Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3a82add5-7d85-458c-f8c1-9e58db6a8949@ti.com \
    --to=t-kristo@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=sboyd@codeaurora.org \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.