public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH v2] sh_tmu: compute mult and shift before registration
Date: Fri, 11 Jun 2010 06:01:51 +0000	[thread overview]
Message-ID: <20100611060151.GA11425@linux-sh.org> (raw)
In-Reply-To: <1275342348-22499-1-git-send-email-aurelien@aurel32.net>

On Fri, Jun 11, 2010 at 02:02:26PM +0900, Magnus Damm wrote:
> For the CMT driver I think it's best to begin with reverting the
> commit f4d7c3565c1692c54d9152b52090fe73f0029e37 and then add your
> changes on top of that.
> 
> From my point of view we really don't want to have the unused
> clk_enable((), clk_get_rate(), clk_disable() hackery left in the
> drivers.
> 
At the moment the enable/get_rate/disable sequence isn't unused, it's
just not terribly desirable. As soon as we have a better way around it
then of course killing that off would be ideal. We only got in to this
mess in the first place due to the registration/enabling ordering.

> Perhaps the same thing should be done for the TMU as well, any ideas Paul?
> 
Yes, the same can be carried over there. Once we have a solution that
forks for the CMT and TMU case then we'll also want to use it for MTU2.
The main reason for MTU2 not having the same interface initially was
simply because none of the SH-2A parts provided sensible clock
definitions for MTU2, and mostly tended to prefer the CMT for wakeups
anyways.

> I agree with adding a __clocksource_updatefreq_hz(cs, p->rate) line to
> sh_cmt_clocksource_enable(), but the p->rate value should already be
> up to date so I don't think you need to add any clk_get_rate() call.
> 
> Want me to hack up a replacement patch?
> 
This all started out from Aurelien's bug report, so as long as that
remains addressed I'm pretty flexible with how we handle the
registration/enable case. 

Note that the clock framework is initialized before the early timer is,
but some boards might still have unusual ordering due to the propagation
of their initial XTAL values.

  parent reply	other threads:[~2010-06-11  6:01 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-31 21:45 [PATCH v2] sh_tmu: compute mult and shift before registration Aurelien Jarno
2010-06-02  8:23 ` Paul Mundt
2010-06-02  9:10 ` Aurelien Jarno
2010-06-07  7:06 ` Magnus Damm
2010-06-07 19:28 ` john stultz
2010-06-10  6:20 ` Magnus Damm
2010-06-10 19:27 ` john stultz
2010-06-11  3:03 ` john stultz
2010-06-11  4:38 ` Magnus Damm
2010-06-11  5:02 ` Magnus Damm
2010-06-11  6:01 ` Paul Mundt [this message]
2010-06-11  6:33 ` Aurelien Jarno

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=20100611060151.GA11425@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@vger.kernel.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