From: Kevin Hilman <khilman@ti.com>
To: "Hiremath, Vaibhav" <hvaibhav@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
Paul Walmsley <paul@pwsan.com>
Subject: Re: [RFC/PATCH 3/7] ARM: OMAP3: clock data: treat all AM35x devices the same
Date: Thu, 05 Jan 2012 16:04:20 -0800 [thread overview]
Message-ID: <87pqex7l2z.fsf@ti.com> (raw)
In-Reply-To: <79CD15C6BA57404B839C016229A409A807195B@DBDE01.ent.ti.com> (Vaibhav Hiremath's message of "Thu, 5 Jan 2012 11:07:19 +0000")
"Hiremath, Vaibhav" <hvaibhav@ti.com> writes:
>> -----Original Message-----
>> From: Hilman, Kevin
>> Sent: Thursday, January 05, 2012 6:47 AM
>> To: linux-omap@vger.kernel.org
>> Cc: Paul Walmsley; Hiremath, Vaibhav
>> Subject: [RFC/PATCH 3/7] ARM: OMAP3: clock data: treat all AM35x devices
>> the same
>>
>> The init for 3505/3517 specific clocks depends on the ordering of
>> cpu_is checks, is error prone and confusing (there are 2 separate
>> checks for cpu_is_omap3505()).
>>
>> Remove the 3505-specific checking since CK_3505 flag is not used, and
>> treat all AM35x clocks the same.
>>
>> This means that the SGX clock (the only AM35x clkdev not currently
>> flagged for 3505) will now be registered on 3505, but that is
>> harmless. That can be cleaned up when the clkdev nodes are removed in
>> favor of them being registered by hwmod.
>>
> [Hiremath, Vaibhav] How do you think we can use hwmod here?
I haven't thought in detail about the exact fix for this, but it
shouldn't be difficult. For example, it could be as simple as creating
some more per-family hwmod lists of optional hwmods. Then, during init,
register them based on the feature flag.
Longer term, it may be that we handle this using DT, but I'm not sure we
will use DT to describe that level of SoC detail.
> Currently hwmod is also dependent on cpu_is_xxxx to register respective modules.
In mainline it is only done by CPU family (revision), not using cpu_is*
> I completely understand and agree to the fact that there may not be any harm
> due to this, but this means, iva will be always registered for 3505 devices.
Correct for today, but not difficult to remedy by fixing up the hwmod init.
Kevin
next prev parent reply other threads:[~2012-01-06 0:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-05 1:16 [PATCH 0/7] ARM: OMAP: remove IP checks from SoC family detection Kevin Hilman
2012-01-05 1:16 ` [RFC/PATCH 1/7] ARM: OMAP: remove unused cpu_is macros that depend on specific IP checks Kevin Hilman
2012-01-05 1:16 ` [RFC/PATCH 2/7] ARM: OMAP3: clock data: replace 3503/3517 flag with AM35x flag for UART4 Kevin Hilman
2012-01-05 1:16 ` [RFC/PATCH 3/7] ARM: OMAP3: clock data: treat all AM35x devices the same Kevin Hilman
2012-01-05 9:48 ` Jean Pihet
2012-01-06 0:59 ` Kevin Hilman
2012-01-05 11:07 ` Hiremath, Vaibhav
2012-01-06 0:04 ` Kevin Hilman [this message]
2012-01-06 8:59 ` Hiremath, Vaibhav
2012-01-05 1:16 ` [RFC/PATCH 4/7] ARM: OMAP: AM35x: remove redunant cpu_is checks for AM3505 Kevin Hilman
2012-01-05 11:06 ` Hiremath, Vaibhav
2012-01-05 1:16 ` [RFC/PATCH 5/7] ARM: OMAP: clock: remove unused CK_3505 flag Kevin Hilman
2012-01-05 11:06 ` Hiremath, Vaibhav
2012-01-05 1:16 ` [RFC/PATCH 6/7] ARM: OMAP: remove unused cpu_is_omap3505() Kevin Hilman
2012-01-05 1:16 ` [RFC/PATCH 7/7] ARM: OMAP: remove unused cpu_is_omap3530() Kevin Hilman
2012-01-05 11:07 ` Hiremath, Vaibhav
2012-01-05 11:15 ` [PATCH 0/7] ARM: OMAP: remove IP checks from SoC family detection Hiremath, Vaibhav
2012-01-06 18:55 ` Kevin Hilman
2012-01-08 8:56 ` Hiremath, Vaibhav
2012-01-06 18:53 ` [RFC/PATCH 8/7] ARM: OMAP: AM35xx: convert 3517 detection/flags to AM35xx Kevin Hilman
2012-01-08 7:02 ` Hiremath, Vaibhav
2012-01-09 23:06 ` Kevin Hilman
2012-01-11 16:29 ` Hiremath, Vaibhav
2012-01-12 5:58 ` Hiremath, Vaibhav
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=87pqex7l2z.fsf@ti.com \
--to=khilman@ti.com \
--cc=hvaibhav@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.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.