linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: rnayak@ti.com (Rajendra Nayak)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 00/24] Move OMAP2+ over to use COMMON clock
Date: Mon, 04 Jun 2012 14:22:07 +0530	[thread overview]
Message-ID: <4FCC7737.8070201@ti.com> (raw)
In-Reply-To: <4FC94FC9.9070903@ti.com>

Hi Jon,

On Saturday 02 June 2012 04:57 AM, Jon Hunter wrote:
> Hi Rajendra,
>
> On 06/01/2012 07:07 AM, Rajendra Nayak wrote:
>> Hi,
>>
>> This RFC series is based of Mikes' latest clk-next. I will
>> rebase it once 3.5-rc1 is out and post with more testing thats
>> in progress. Meanwhile, the RFC is for me to get some early
>> feedback on the patches.
>>
>> This series retains the static clock declarations and also
>> all data and code in mach-omap folders and does not move
>> it as yet to drivers/clk. I know its desierable that we move
>> away from static declaration of data and move over to drivers/clk
>> but thats not addressed by this series.
>> Also the series moves over only OMAP2+ (OMAP2/3/4)
>> to use COMMON clk and leaves OMAP1 still using OMAP
>> clock framework.
>>
>> The series does not break git-bisect at any point and to
>> do so adds new data in completely different files and uses
>> some ifdefferry in code too, and switches over in one
>> patch to move from OMAP clock to COMMON clock. Then deletes
>> all old data files and all the ifdeferrey around.
>>
>> All of the new data for OMAP2/3/4 in the new COMMON clock
>> format is autogenerated, OMAP4 by hacking the existing python
>> scripts, and OMAP2/3 by converting the existing C99 structs
>> to JSON format (Thanks to Paul Walmsley for this) and then having
>> python to read the JSON format and generate the C99 structs
>> back in the form COMMON clk expects.
>>
>> The patches also depend on 2 of my patches posted here
>> http://comments.gmane.org/gmane.linux.kernel/1298747
>> I have not reposted them becasue one of them is already
>> picked up by Mike, and the other is already under discussion.
>>
>> The series with all dependent patches can be found here
>> git://github.com/rrnayak/linux.git clk-next-omap
>>
>> regards,
>> Rajendra
>>
>> Mike Turquette (1):
>>    ARM: omap4: cm: add bitfield width values
>>
>> Rajendra Nayak (23):
>>    clk: Add CLK_IS_BASIC flag to identify basic clocks
>>    ARM: omap: clk: convert all clk_enable to clk_prepare_enable
>>    ARM: omap: hwmod: get rid of all omap_clk_get_by_name usage
>>    ARM: omap: clk: Nuke plat clock.c&  clock.h if CONFIG_COMMON_CLK
>>    ARM: omap: clk: Remove all direct dereferncing of struct clk
>>    ARM: omap: hwmod: Fix up hwmod based clkdm accesses
>>    ARM: omap4: clk: Convert to common clk
>>    ARM: omap3: clk: Convert to common clk
>>    ARM: omap2: clk: Convert to common clk
>>    ARM: omap: clk: list all clk_hw_omap clks to enable/disable autoidle
>>    ARM: omap: clk: Define a function to enable clocks at init
>>    ARM: omap4: clk: Add 44xx data using common struct clk
>>    ARM: omap3: clk: Add 3xxx data using common struct clk
>>    ARM: omap2: clk: Add 24xx data using common struct clk
>>    ARM: omap: clk: Switch to COMMON clk
>>    ARM: omap: clk: Use plat clock.c&  clock.h only for OMAP1
>
> With regard to the above patch, I am not sure why it is necessary to
> move the existing definitions out of plat-omap/clock.h to put in
> mach-omap2/clock.h. Eventually, if we move omap1 to the common clock
> framework, won't we need to move them back? It would seem to me that by
> keeping them in plat clock.h it will be easier to migrate omap1 to the
> common clock framework (assuming thats our goal). Also, by adding the
> common clock definitions to the plat clock.h it will be easier for
> migrating omap1 too.

I was infact thinking of moving these files into mach-omap1/ since they
are now OMAP1 specific. Is your concern coming mainly from the clksel
structs that you will need to be shared across OMAP1 and OMAP2+?
The right thing to do seems like is to move OMAP1 across to COMMON clk
also and keep the plat clock.h and get rid of plat clock.c completely.
But for now, I really haven;t looked at OMAP1 migration as all.

regards,
Rajendra
>
> Obviously, we would need to keep the #ifdef COMMON_CLK around this code
> so it can compile for both omap1 and omap2+ today.
>
> Cheers
> Jon

  reply	other threads:[~2012-06-04  8:52 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-01 12:07 [RFC 00/24] Move OMAP2+ over to use COMMON clock Rajendra Nayak
2012-06-01 12:07 ` [RFC 01/24] clk: Add CLK_IS_BASIC flag to identify basic clocks Rajendra Nayak
2012-06-01 12:07 ` [RFC 02/24] ARM: omap4: cm: add bitfield width values Rajendra Nayak
2012-06-01 12:07 ` [RFC 03/24] ARM: omap: clk: convert all clk_enable to clk_prepare_enable Rajendra Nayak
2012-06-01 12:07 ` [RFC 04/24] ARM: omap: hwmod: get rid of all omap_clk_get_by_name usage Rajendra Nayak
2012-06-01 12:07 ` [RFC 05/24] ARM: omap: clk: Nuke plat clock.c & clock.h if CONFIG_COMMON_CLK Rajendra Nayak
2012-06-04 13:57   ` Jon Hunter
2012-06-04 14:16     ` Rajendra Nayak
2012-06-04 14:25       ` Jon Hunter
2012-06-05  4:58         ` Rajendra Nayak
2012-06-05 13:11           ` Jon Hunter
2012-06-01 12:07 ` [RFC 06/24] ARM: omap: clk: Remove all direct dereferncing of struct clk Rajendra Nayak
2012-06-01 12:07 ` [RFC 07/24] ARM: omap: hwmod: Fix up hwmod based clkdm accesses Rajendra Nayak
2012-06-01 12:07 ` [RFC 08/24] ARM: omap4: clk: Convert to common clk Rajendra Nayak
2012-06-01 12:07 ` [RFC 09/24] ARM: omap3: " Rajendra Nayak
2012-06-01 12:07 ` [RFC 10/24] ARM: omap2: " Rajendra Nayak
2012-06-01 12:07 ` [RFC 11/24] ARM: omap: clk: list all clk_hw_omap clks to enable/disable autoidle Rajendra Nayak
2012-06-04  5:44   ` Tony Lindgren
2012-06-04  8:53     ` Rajendra Nayak
2012-06-01 12:07 ` [RFC 12/24] ARM: omap: clk: Define a function to enable clocks at init Rajendra Nayak
2012-06-01 12:07 ` [RFC 13/24] ARM: omap4: clk: Add 44xx data using common struct clk Rajendra Nayak
2012-06-04 22:14   ` Jon Hunter
2012-06-05  4:35     ` Rajendra Nayak
2012-06-05  6:42   ` Tony Lindgren
2012-06-05  6:44     ` Tony Lindgren
2012-06-07  5:29     ` Rajendra Nayak
2012-06-20 11:39       ` Tony Lindgren
2012-06-21  6:28         ` Rajendra Nayak
2012-06-21  7:00           ` Tony Lindgren
2012-06-01 12:07 ` [RFC 14/24] ARM: omap3: clk: Add 3xxx " Rajendra Nayak
2012-06-01 12:07 ` [RFC 15/24] ARM: omap2: clk: Add 24xx " Rajendra Nayak
2012-06-01 12:07 ` [RFC 16/24] ARM: omap: clk: Switch to COMMON clk Rajendra Nayak
2012-06-01 12:07 ` [RFC 17/24] ARM: omap: clk: Use plat clock.c & clock.h only for OMAP1 Rajendra Nayak
2012-06-01 12:07 ` [RFC 18/24] ARM: omap: hwmod: Cleanup !CONFIG_COMMON_CLK parts Rajendra Nayak
2012-06-01 12:08 ` [RFC 19/24] ARM: omap4: clk: " Rajendra Nayak
2012-06-01 12:08 ` [RFC 20/24] ARM: omap3: " Rajendra Nayak
2012-06-01 12:08 ` [RFC 21/24] ARM: omap2: " Rajendra Nayak
2012-06-01 12:08 ` [RFC 22/24] ARM: omap4: clk: Delete old OMAP clock data Rajendra Nayak
2012-06-01 12:08 ` [RFC 23/24] ARM: omap3: " Rajendra Nayak
2012-06-01 12:08 ` [RFC 24/24] ARM: omap2: " Rajendra Nayak
2012-06-01 13:37 ` [RFC 00/24] Move OMAP2+ over to use COMMON clock Paul Walmsley
2012-06-04  8:38   ` Rajendra Nayak
2012-06-01 17:58 ` Mike Turquette
2012-06-01 20:37 ` Jon Hunter
2012-06-01 23:27 ` Jon Hunter
2012-06-04  8:52   ` Rajendra Nayak [this message]
2012-06-04 13:51     ` Jon Hunter
2012-06-04 14:04       ` Rajendra Nayak

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=4FCC7737.8070201@ti.com \
    --to=rnayak@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).