linux-mips.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ralf Baechle <ralf@linux-mips.org>
To: Alexander Clouter <alex@digriz.org.uk>
Cc: linux-mips@linux-mips.org
Subject: Re: [PATCH 5/8] add Texas Instruments AR7 support
Date: Wed, 24 Jun 2009 13:23:47 +0100	[thread overview]
Message-ID: <20090624122347.GA28583@linux-mips.org> (raw)
In-Reply-To: <o8f9h6-v4l.ln1@woodchuck.wormnet.eu>

On Wed, Jun 24, 2009 at 12:28:56PM +0100, Alexander Clouter wrote:

> Florian Fainelli <florian@openwrt.org> wrote:
> > Le Tuesday 23 June 2009 20:15:09 Ralf Baechle, vous avez écrit :
> >> On Tue, Jun 23, 2009 at 11:28:27AM +0200, Florian Fainelli wrote:
> >>
> >> AR7 time again - the platform pending longest ...  Let's see:
> > 
> > Thank you very much for your comments Ralf, please find below an updated
> > version which addresses all of your comments. I hope this time we are going
> > to make it ;)
> >
> I am hoping someone can have a tackle of the lzma/bzip2 kernel/initramfs 
> generic compression code myself, but I guess one thing at a time. :)  If 
> you have a simple way for me to produce a LZMA'd image, I'll test it 
> this on my WAG54Gv2 (I need the image to be less than 700kB).
> 
> My comments, for what they are worth, below:
> 
> > From: Florian Fainelli <florian@openwrt.org>
> > Subject: Add support for Texas Instruments AR7 System-on-a-Chip
> > 
> > This patch adds support for the Texas Instruments AR7 System-on-a-Chip.
> > It supports the TNETD7100, 7200 and 7300 versions of the SoC.
> > 
> > Changes from v4:
> > [snipped]
> > 
> > Signed-off-by: Matteo Croce <matteo@openwrt.org>
> > Signed-off-by: Felix Fietkau <nbd@openwrt.org>
> > Signed-off-by: Eugene Konev <ejka@openwrt.org>
> > Signed-off-by: Nicolas Thill <nico@openwrt.org>
> > Signed-off-by: Florian Fainelli <florian@openwrt.org>
> > -- 
> > [snipped]
> >
> > diff --git a/arch/mips/ar7/clock.c b/arch/mips/ar7/clock.c
> > new file mode 100644
> > index 0000000..7ce5f07
> > --- /dev/null
> > +++ b/arch/mips/ar7/clock.c
> > @@ -0,0 +1,450 @@
> > [snipped]
> > +static void __init tnetd7300_init_clocks(void)
> > +{
> > +       u32 *bootcr = (u32 *)ioremap_nocache(AR7_REGS_DCL, 4);
> > +       struct tnetd7300_clocks *clocks =
> > +                                       (struct tnetd7300_clocks *)
> > +                                       ioremap_nocache(AR7_REGS_POWER + 0x20,
> > +                                       sizeof(struct tnetd7300_clocks));
> > +
> >
> Needless cast'ing and also should you not check that NULL is not 
> returned for both of these ioremap's?

That's because we "know" it can't ever fail for addresses < 0x20000000.
Downside - sparse will bitch about it.

But yes, the cast indeed is unnecessary.

  Ralf

  reply	other threads:[~2009-06-24 12:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 14:19 [PATCH 5/8] add Texas Instruments AR7 support Florian Fainelli
     [not found] ` <200906161428.33571.florian@openwrt.org>
2009-06-23  9:28   ` Florian Fainelli
2009-06-23 18:15     ` Ralf Baechle
2009-06-24  9:12       ` Florian Fainelli
2009-06-24 10:22         ` Ralf Baechle
2009-06-24 12:17           ` Florian Fainelli
2009-06-24 11:28         ` Alexander Clouter
2009-06-24 12:23           ` Ralf Baechle [this message]
2009-06-24 20:18             ` Florian Fainelli
2009-06-24 17:32           ` Florian Fainelli
2009-06-24 21:16             ` Alexander Clouter

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=20090624122347.GA28583@linux-mips.org \
    --to=ralf@linux-mips.org \
    --cc=alex@digriz.org.uk \
    --cc=linux-mips@linux-mips.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).