From: Grant Likely <grant.likely@secretlab.ca>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Salter <msalter@redhat.com>,
linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org,
devicetree-discuss@lists.ozlabs.org
Subject: Re: [PATCH v3 07/24] C6X: devicetree support
Date: Wed, 28 Sep 2011 18:11:12 -0500 [thread overview]
Message-ID: <20110928231112.GE2838@ponder.secretlab.ca> (raw)
In-Reply-To: <201109281531.36792.arnd@arndb.de>
On Wed, Sep 28, 2011 at 03:31:36PM +0200, Arnd Bergmann wrote:
> On Tuesday 27 September 2011, Mark Salter wrote:
> > diff --git a/arch/c6x/boot/install-dtb.c b/arch/c6x/boot/install-dtb.c
> > new file mode 100644
> > index 0000000..fa979ce
> > --- /dev/null
> > +++ b/arch/c6x/boot/install-dtb.c
> > @@ -0,0 +1,333 @@
> > +/*
> > + * Program to hack in a DTB to an ELF file having a placeholder
> > + * section named __fst_blob.
> > + *
> > + * This allows for building multiple images with builtin DTBs
> > + * using a single vmlinux image. This is only necessary until
> > + * bootloader support exists.
> > + *
> > + * Copyright 2011 Texas Instruments Incorporated
> > + *
> > + * This program is free software; you can redistribute it and/or
> > + * modify it under the terms of the GNU General Public License
> > + * as published by the Free Software Foundation; either version
> > + * 2 of the License, or (at your option) any later version.
> > + *
> > + * Usage: install-dtb <image.dtb> <kernel.elf>
> > + */
>
> Other architectures allow simply appending the device tree to the
> kernel image file, which is more convenient for users and does
> not require much kernel support. Have you tried this?
>
> > diff --git a/arch/c6x/platforms/platform.c b/arch/c6x/platforms/platform.c
> > new file mode 100644
> > index 0000000..ad4651c
> > --- /dev/null
> > +++ b/arch/c6x/platforms/platform.c
> > @@ -0,0 +1,17 @@
> > +
> > +static int __init c6x_device_probe(void)
> > +{
> > + of_platform_bus_probe(NULL, of_default_bus_match_table, NULL);
> > + return 0;
> > +}
> > +device_initcall(c6x_device_probe);
>
> device_initcall is run rather late. I think it would be more useful
> to run this as early as possible, in order to make it possible to
> have more of the core services probed through the device tree.
>
> I also think that for probing the device tree root, you should be
> using of_platform_populate instead of of_platform_bus_probe
> nowadays. Maybe Grant can provide more information on this.
Yes. Use of_platform_populate(). It's better.
g.
prev parent reply other threads:[~2011-09-28 23:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1317155405-26235-1-git-send-email-msalter@redhat.com>
2011-09-27 20:29 ` [PATCH v3 07/24] C6X: devicetree support Mark Salter
2011-09-28 13:31 ` Arnd Bergmann
2011-09-28 14:44 ` Mark Salter
2011-09-28 14:57 ` Arnd Bergmann
2011-09-28 23:11 ` Grant Likely [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=20110928231112.GE2838@ponder.secretlab.ca \
--to=grant.likely@secretlab.ca \
--cc=arnd@arndb.de \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=msalter@redhat.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).