From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, Paul Mackerras <paulus@samba.org>,
Arnd Bergmann <arnd@arndb.de>
Subject: Re: [PATCH] linkstation / kurobox support
Date: Sat, 2 Dec 2006 13:32:23 +0100 (CET) [thread overview]
Message-ID: <Pine.LNX.4.60.0612021325090.4841@poirot.grange> (raw)
In-Reply-To: <1165058392.22108.34.camel@localhost.localdomain>
On Sat, 2 Dec 2006, Benjamin Herrenschmidt wrote:
> On Sat, 2006-12-02 at 11:56 +0100, Arnd Bergmann wrote:
>
> > > +#ifdef CONFIG_BLK_DEV_INITRD
> > > + if (initrd_start)
> > > + ROOT_DEV = Root_RAM0;
> > > + else
> > > +#endif
> > > +#ifdef CONFIG_ROOT_NFS
> > > + ROOT_DEV = Root_NFS;
> > > +#else
> > > + ROOT_DEV = Root_HDA1;
> > > +#endif
> > > +
> >
> > This looks wrong. Didn't the same code come up recently in a review for
> > another platform? What was the conclusion?
>
> It's a copy paste that we inhertit from the big bang... Should probably
> go...
>
> Note that PowerMac does have a proper root autodetect feature though
> it's not fascionable to have such a thing nowadays and the only reason
> it's still in is because it mostly stays under the radar :-)
>
> So basically... yeah, the #ifdef sucks, but I don't mind that much...
Thanks for the reviews. I don't like this place either. Never needed
anything like that on ARM, don't think many other platforms have it
either, but looking through other powerpc platforms I saw a few similar
code fragments, so, kept it for now. In fact, it is there just to try to
boot in case no "root=..." command line option is passed at all, right? I
wouldn't mind just a panic then. Besides, this is supposed to be booted
from u-boot, so, specifying a command line is not a problem. So, yes, will
remove that. Is this an acceptable solution? But - could we, please, just
get it into some tree in this form for now (if there are no other major
objections), and I promise I'll send an incremental patch soon. I just
don't want to bomb the list with this "minor" patch - it's already the 5th
version...
Thanks
Guennadi
---
Guennadi Liakhovetski
next prev parent reply other threads:[~2006-12-02 12:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-12-01 21:53 [PATCH] linkstation / kurobox support Guennadi Liakhovetski
2006-12-02 10:56 ` Arnd Bergmann
2006-12-02 11:19 ` Benjamin Herrenschmidt
2006-12-02 11:32 ` Benjamin Herrenschmidt
2006-12-02 12:32 ` Guennadi Liakhovetski [this message]
2007-01-28 22:31 ` Guennadi Liakhovetski
2007-02-08 21:47 ` Kumar Gala
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=Pine.LNX.4.60.0612021325090.4841@poirot.grange \
--to=g.liakhovetski@gmx.de \
--cc=arnd@arndb.de \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=paulus@samba.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).