All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jon Hunter <jon-hunter@ti.com>
To: "Cousson, Benoit" <b-cousson@ti.com>
Cc: linux-omap <linux-omap@vger.kernel.org>,
	Tony Lindgren <tony@atomide.com>
Subject: Re: [PATCH 6/9] ARM: OMAP2+: Fix external clock support for dmtimers
Date: Tue, 22 May 2012 10:04:23 -0500	[thread overview]
Message-ID: <4FBBAAF7.3030007@ti.com> (raw)
In-Reply-To: <4FBA742D.6020800@ti.com>

Hi Benoit,

On 05/21/2012 11:58 AM, Cousson, Benoit wrote:
> Hi Jon,
> 
> On 5/16/2012 1:35 AM, Jon Hunter wrote:
>> From: Jon Hunter<jon-hunter@ti.com>
>>
>> Currently, the dmtimer determines whether an timer can support an
>> external
>> clock source (sys_altclk) for driving the timer by the IP version. Only
>> OMAP24xx devices can support an external clock source, but the IP version
>> between OMAP24xx and OMAP3xxx is common and so this incorrectly indicates
>> that OMAP3 devices can use an external clock source.
>>
>> Rather than use the IP version, use the OMAP_TIMER_HAS_ALTCLK flag added
>> to the HWMOD timer device attributes. By doing this, this allows us to
>> eliminate the "timer_ip_version" variable passed as part of the
>> platform data.
> 
> I do not think this is the right way to handle that. The timer IP itself
> does have only one input clock.
> This is the mux before that clock that will have several inputs
> depending on the SoC revision.
> So this is purely PRCM stuff and has nothing to do with the timer IP
> itself.
> 
> The OMAP_TIMER_HAS_ALTCLK is thus not a timer IP information and cannot
> be stored inside timer hwmod.

Ok, understood.

> In fact, if the alt clock is there the "alt_clk" alias will be there and
> thus you can use the clk_get(dev, "alt_clk") to figure out if the clock
> is there or not.

Ok, I can do this and did think about it, but then wondered why it had
been done this way in the first place? However, I prefer this approach
too as it simplifies the code :-)

So I modify how this is handled.

Cheers
Jon

  reply	other threads:[~2012-05-22 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-15 23:35 [PATCH 6/9] ARM: OMAP2+: Fix external clock support for dmtimers Jon Hunter
2012-05-21 16:58 ` Cousson, Benoit
2012-05-22 15:04   ` Jon Hunter [this message]
2012-05-22 15:55     ` Cousson, Benoit

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=4FBBAAF7.3030007@ti.com \
    --to=jon-hunter@ti.com \
    --cc=b-cousson@ti.com \
    --cc=linux-omap@vger.kernel.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.