linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Magnus Damm <magnus.damm@gmail.com>
To: linux-fbdev@vger.kernel.org
Subject: Re: [PATCH 3/6] ARM: mach-shmobile: extend clock definitions on
Date: Tue, 06 Jul 2010 09:46:50 +0000	[thread overview]
Message-ID: <AANLkTimntNMLkSaiq5EErvTpF8I3yeKYRE8guPt9iozX@mail.gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.64.1006301137290.17489@axis700.grange>

2010/7/6 Guennadi Liakhovetski <g.liakhovetski@gmx.de>:
> On Mon, 5 Jul 2010, Magnus Damm wrote:
>> On Fri, Jul 2, 2010 at 9:33 PM, Guennadi Liakhovetski
>> <g.liakhovetski@gmx.de> wrote:
>> > On Fri, 2 Jul 2010, Magnus Damm wrote:
>> >> On Wed, Jun 30, 2010 at 6:55 PM, Guennadi Liakhovetski
>> >> <g.liakhovetski@gmx.de> wrote:
>> >> > Add definitions for DV_CLKI and HDMI clocks, extend support for PLLC2 and some
>> >> > other clocks.
>> >> >
>> >> > Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>

>> >> > +       /*
>> >> > +        * TODO: If the PLL is off, mult should be = 1, but the clock must be
>> >> > +        * stopped during re-parenting, a better solution to this conflict
>> >> > +        * should be found.
>> >> > +        */
>> >> > +       mult = (((__raw_readl(PLLC2CR) >> 24) & 0x3f) + 1) * 2;
>> >>
>> >> Yes, this needs to be fixed.
>> >
>> > You mean now or in the future? If now - I don't see a reasonable fix so
>> > far... Do you?
>>
>> I'm not sure which way is the best, but I think this patch breaks the
>> case when the PLL is turned off.
>
> Ok, I can re-add the test and just add a line
>
> š š š š š š š šclk->rate = pllc2_recalc(clk);
>
> in pllc2_enable()? This even makes sense in a way - if we know, that
> after enabling the ->rate can get out of sync with the actual frequency...
> I'll prepare an updated patch to make it easier to see.

After looking into the pllc2 part of the data sheet it looks more like
it should be exported like a clock that cannot be disabled. So
basically, extend the frequency table to include one more frequency
and handle the pll-off case as a 1:1 mapping.

Cheers,

/ magnus

      parent reply	other threads:[~2010-07-06  9:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-30  9:55 [PATCH 3/6] ARM: mach-shmobile: extend clock definitions on sh7372 Guennadi Liakhovetski
2010-07-02  8:21 ` [PATCH 3/6] ARM: mach-shmobile: extend clock definitions on Magnus Damm
2010-07-02 12:33 ` Guennadi Liakhovetski
2010-07-05  4:20 ` Magnus Damm
2010-07-05 15:04 ` Guennadi Liakhovetski
2010-07-06  9:46 ` Magnus Damm [this message]

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=AANLkTimntNMLkSaiq5EErvTpF8I3yeKYRE8guPt9iozX@mail.gmail.com \
    --to=magnus.damm@gmail.com \
    --cc=linux-fbdev@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;
as well as URLs for NNTP newsgroup(s).