From: "Cousson, Benoit" <b-cousson@ti.com>
To: Paul Walmsley <paul@pwsan.com>
Cc: "DebBarma, Tarun Kanti" <tarun.kanti@ti.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Gopinath, Thara" <thara@ti.com>,
"Basak, Partha" <p-basak2@ti.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCHv3 3/17] dmtimer: add omap2420 hwmod database
Date: Mon, 4 Oct 2010 09:50:17 +0200 [thread overview]
Message-ID: <4CA98739.9040309@ti.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1010011623020.22941@utopia.booyaka.com>
Hi Paul,
On 10/2/2010 12:25 AM, Paul Walmsley wrote:
> On Thu, 30 Sep 2010, Cousson, Benoit wrote:
>
>> On 9/21/2010 10:51 AM, DebBarma, Tarun Kanti wrote:
>>
>>> #include "omap_hwmod_common_data.h"
>>>
>>> #include "prm-regbits-24xx.h"
>>> @@ -121,6 +123,614 @@ static struct omap_hwmod omap2420_l4_wkup_hwmod = {
>>> .omap_chip = OMAP_CHIP_INIT(CHIP_IS_OMAP2420),
>>> .flags = HWMOD_NO_IDLEST,
>>> };
>>> +/* Timer Common */
>>> +static char *timer_clk_src_names[] = {
>>> + "sys_ck",
>>> + "func_32k_ck",
>>> + "alt_ck",
>>> + NULL,
>>> +};
>>
>> I have an issue with that, because this is a pure duplication of the clock_sel
>> information already contained in the clock data:
>>
>> static const struct clksel omap24xx_gpt_clksel[] = {
>> { .parent =&func_32k_ck, .rates = gpt_32k_rates },
>> { .parent =&sys_ck, .rates = gpt_sys_rates },
>> { .parent =&alt_ck, .rates = gpt_alt_rates },
>> { .parent = NULL },
>> };
>>
>> And duplicating the same information somewhere else is most of the time a bad
>> idea.
>
> Yep, there's no way that info should be in the hwmod data, in the current
> setup. It belongs in the clkdev tables. Example below.
>
>> That being said... I don't really know how to handle that properly :-)
>>
>> We have to find a better way to select the proper source clock in a soc
>> independent way.
>>
>> Maybe Paul will have some idea?
>
> Here's how it's done:
>
> http://marc.info/?l=linux-omap&m=128596931017785&w=2
>
> and
>
> http://marc.info/?l=linux-omap&m=128596931417805&w=2
The famous clock alias... I don't know why but I always forgot that
solution each time I have such concern:-(
This is indeed the very clean and cool way to do that clock selection.
We can even remove this #define to identified them and use the clock
string name directly.
Thanks Paul,
Benoit
next prev parent reply other threads:[~2010-10-04 7:50 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-21 8:51 [PATCHv3 3/17] dmtimer: add omap2420 hwmod database Tarun Kanti DebBarma
2010-09-30 21:07 ` Cousson, Benoit
2010-10-01 22:25 ` Paul Walmsley
2010-10-04 7:50 ` Cousson, Benoit [this message]
2010-10-09 14:58 ` DebBarma, Tarun Kanti
2010-10-11 14:08 ` DebBarma, Tarun Kanti
2010-10-11 14:19 ` Paul Walmsley
2010-10-11 15:34 ` Cousson, Benoit
2010-10-12 6:12 ` DebBarma, Tarun Kanti
2010-10-12 6:22 ` Paul Walmsley
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=4CA98739.9040309@ti.com \
--to=b-cousson@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=p-basak2@ti.com \
--cc=paul@pwsan.com \
--cc=tarun.kanti@ti.com \
--cc=thara@ti.com \
--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.