From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Scott Wood <scottwood@freescale.com>
Cc: Stephen Chivers <schivers@csc.com>,
paulus@samba.org, linuxppc-dev@lists.ozlabs.org,
cproctor@csc.com
Subject: Re: [RFC PATCH v2 1/1] powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100.
Date: Wed, 11 Sep 2013 11:15:23 +1000 [thread overview]
Message-ID: <1378862123.3783.5.camel@pasglop> (raw)
In-Reply-To: <1378856847.12204.380.camel@snotra.buserror.net>
On Tue, 2013-09-10 at 18:47 -0500, Scott Wood wrote:
> No blank line before }
>
> > +CONFIG_CMDLINE_BOOL=y
> > +CONFIG_CMDLINE="console=ttyS0,9600 ip=dhcp root=/dev/nfs"
>
> I take it there's no way to pass a command line in from whatever loader
> this board uses... but you could put it in the dts instead.
No, please don't put that in the device-tree. Somebody might want
different settings, this is typically what .config is for.
> Did you ever figure out the problem with the combined defconfig?
>
> > + help
> > + This option enables support for the Motorola (now Emerson) MVME5100
> > + board.
>
> Whitespace
>
> > +/* Board register addresses. */
> > +#define BOARD_STATUS_REG 0xfef88080
> > +#define BOARD_MODFAIL_REG 0xfef88090
> > +#define BOARD_MODRST_REG 0xfef880a0
> > +#define BOARD_TBEN_REG 0xfef880c0
> > +#define BOARD_SW_READ_REG 0xfef880e0
> > +#define BOARD_GEO_ADDR_REG 0xfef880e8
> > +#define BOARD_EXT_FEATURE1_REG 0xfef880f0
> > +#define BOARD_EXT_FEATURE2_REG 0xfef88100
>
> Use a space rather than a tab after #define.
>
> > +static unsigned int pci_membase;
>
> phys_addr_t
>
> > +static void mvme5100_restart(char *cmd)
> > +{
> > + u_char *restart;
>
> Is all that tabbing before "*restart" really necessary?
>
> > + restart = ioremap(BOARD_MODRST_REG, 4);
> > + local_irq_disable();
> > + mtmsr(mfmsr() | MSR_IP);
> > +
> > + out_8((u_char *) restart, 0x01);
>
> If ioremap() fails you'll panic here.
>
> In any case, you should map things at boot time.
>
> -Scott
>
>
next prev parent reply other threads:[~2013-09-11 1:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 5:51 [RFC PATCH v2 1/1] powerpc/embedded6xx: Add support for Motorola/Emerson MVME5100 Stephen Chivers
2013-09-10 23:47 ` Scott Wood
2013-09-11 0:29 ` Stephen N Chivers
2013-09-11 1:15 ` Benjamin Herrenschmidt [this message]
2013-09-11 16:39 ` Scott Wood
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=1378862123.3783.5.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=cproctor@csc.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=schivers@csc.com \
--cc=scottwood@freescale.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 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).