All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Walmsley <paul@pwsan.com>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: "Menon, Nishanth" <nm@ti.com>,
	ext-ari.kauppi@nokia.com, linux-omap <linux-omap@vger.kernel.org>,
	"Pandita, Vikram" <vikram.pandita@ti.com>,
	khilman@deeprootsystems.com, "Sonasath, Moiz" <m-sonasath@ti.com>,
	tony@atomide.com, "Aguirre Rodriguez,
	Sergio Alberto" <saaguirre@ti.com>
Subject: RE: [PATCH 2/2 v2] OMAP3:clk - introduce DPLL4 jtype support
Date: Tue, 10 Nov 2009 03:23:53 -0700 (MST)	[thread overview]
Message-ID: <alpine.DEB.2.00.0911100320060.20233@utopia.booyaka.com> (raw)
In-Reply-To: <13B9B4C6EF24D648824FF11BE8967162039B6CDD1F@dlee02.ent.ti.com>

Hi Richard, Nishanth

(adding Ari back in to cc, also Tony, Kevin)

On Sat, 31 Oct 2009, Woodruff, Richard wrote:

> > From: Paul Walmsley [mailto:paul@pwsan.com]
> > Sent: Wednesday, October 28, 2009 9:39 PM
> 
> > > +static void lookup_dco_sddiv(struct clk *clk, u8 *dco, u8 *sd_div, u16 m,
> > u8 n)
> > > +{
> > > +   unsigned long fint, clkinp, sd; /* watch out for overflow */
> > > +   int mod1, mod2;
> > > +
> > > +   n++; /* always n+1 below */
> >
> > The N that's passed into lookup_dco_sddiv() is the real N -- that is, it's
> > the register bitfield plus one.  That can be seen below in this line:
> >
> > >     v |= (n - 1) << __ffs(dd->div1_mask);
> >
> > Given this, is the "n++;" above correct?
> 
> Probably not...

Great - so can we count on you and/or Nishanth to update this patch taking 
this and Ari's comments into account and to resend to the list?

> > The rest of the code looks fine.  (Of course, I can't review the
> > technical basis of the code since I don't have the 3630 docs yet, but I'm
> > fine with taking it in the meantime.)
> >
> > I might change the 'u8 jtype;' field below into 'u8 flags;'; please let me
> > know if you foresee a problem with that.
> 
> Don't care.  Jtype seemed description but flag |= jtype is just as descriptive and can hold a few more.

OK.

> Thanks for looking over.

You're welcome.


- Paul

      reply	other threads:[~2009-11-10 10:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <[PATCH 2/2] OMAP3:clk: introduce DPLL4 jtype support>
2009-10-20 20:02 ` [PATCH 2/2 v2] OMAP3:clk - introduce DPLL4 jtype support Nishanth Menon
2009-10-29  2:39   ` Paul Walmsley
2009-10-30 14:23     ` Kauppi Ari (EXT-Ixonos/Oulu)
2009-10-31  9:40     ` ext-ari.kauppi
2009-10-31 10:06       ` Woodruff, Richard
2009-10-31 12:35     ` Woodruff, Richard
2009-11-10 10:23       ` Paul Walmsley [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=alpine.DEB.2.00.0911100320060.20233@utopia.booyaka.com \
    --to=paul@pwsan.com \
    --cc=ext-ari.kauppi@nokia.com \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=m-sonasath@ti.com \
    --cc=nm@ti.com \
    --cc=r-woodruff2@ti.com \
    --cc=saaguirre@ti.com \
    --cc=tony@atomide.com \
    --cc=vikram.pandita@ti.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.