From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/3] mx51: Move OTG initialisation for all boards to a single file
Date: Thu, 7 Oct 2010 14:22:30 +0200 [thread overview]
Message-ID: <20101007122230.GS29673@pengutronix.de> (raw)
In-Reply-To: <20101007120459.GJ2457@matterhorn.lan>
Hi Amit,
On Thu, Oct 07, 2010 at 03:04:59PM +0300, Amit Kucheria wrote:
> On 10 Oct 07, Uwe Kleine-K?nig wrote:
> > On Thu, Oct 07, 2010 at 03:58:48AM +0300, Amit Kucheria wrote:
> > > + /* Set the PHY clock to 24 MHz */
> > > + v = __raw_readl(usbother_base + MXC_USB_PHY_CTR_FUNC2_OFFSET);
> > > + v &= ~MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK;
> > I wonder why a field in a register called MXC_USB_PHY_CTR_FUNC2 is named
> > MX5_USB_UTMI_PHYCTRL1_PLLDIV. Usually the register name is a prefix for
> > the field name?!
>
> I have a patch renaming the various bit-fields and registers to conform to
> the reference manual. I'll post it soon.
great
> > > + v |= MX51_USB_PLL_DIV_24_MHZ;
> > hmm, babbage used
>
> > > - v &= ~MX5_USB_UTMI_PHYCTRL1_PLLDIV_MASK;
> > > - v |= MX51_USB_PLL_DIV_19_2_MHZ;
> >
> > ?
>
> Good catch :)
>
> But if you look at the reference manual, table 60-6, 19.2 MHz would use a
> value of 0x0, but the actual code uses a value of 0x1 that corresponds to
> 24MHz. 19.2MHz (0x0) doesn't even work for me.
Then maybe note it in the commit log?!
> > Maybe you want to reorder your patches such that your patch 2 comes
> > after this one, as currently this patch removes ~80% of the code patch 2
> > introduces.
>
> I did it to make bisection easier. I didn't want to add a new board feature
> and do consolidation in a single patch.
Yep, that is ok. Currently you have:
1/3: add board support for iforgotthename
2/3: add usb support for iforgotthename
3/3: consolidate usb support
I suggested to do 1, 3, 2 instead. Thinking again 3, 1+2 might even be
better.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-K?nig |
Industrial Linux Solutions | http://www.pengutronix.de/ |
next prev parent reply other threads:[~2010-10-07 12:22 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-07 0:57 [PATCH 0/3] mxc: mx51: Add support for efikamx nettop Amit Kucheria
2010-10-07 0:58 ` [PATCH 1/3] mx51: add support for genesi " Amit Kucheria
2010-10-07 6:55 ` Uwe Kleine-König
2010-10-07 10:31 ` Amit Kucheria
2010-10-07 0:58 ` [PATCH 2/3] mx51: efikamx: add otg support Amit Kucheria
2010-10-07 6:59 ` Uwe Kleine-König
2010-10-07 11:22 ` Sergei Shtylyov
2010-10-07 0:58 ` [PATCH 3/3] mx51: Move OTG initialisation for all boards to a single file Amit Kucheria
2010-10-07 7:08 ` Uwe Kleine-König
2010-10-07 12:04 ` Amit Kucheria
2010-10-07 12:22 ` Uwe Kleine-König [this message]
2010-10-07 7:48 ` Sascha Hauer
2010-10-07 12:03 ` Fabio Estevam
2010-10-08 8:27 ` Amit Kucheria
2010-10-11 10:34 ` Amit Kucheria
2010-10-11 13:10 ` Sascha Hauer
2010-10-11 14:08 ` Amit Kucheria
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=20101007122230.GS29673@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.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).