From: David Gibson <david-xT8FGy+AXnRB3Ne2BGzF6laj5H9X9Tb+@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: [PATCH] of/fdt: Add unflatten_partial_device_tree
Date: Tue, 29 Jun 2010 11:22:07 +1000 [thread overview]
Message-ID: <20100629012207.GG13509@yookeroo> (raw)
In-Reply-To: <AANLkTilXgArDaFjv0RiTMeQBdU3bma4sTtLLbwN8lI4O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Mon, Jun 28, 2010 at 04:18:27PM -0700, Grant Likely wrote:
> On Mon, Jun 28, 2010 at 10:47 AM, Stephen Neuendorffer
> <stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org> wrote:
> > This code allows a user to parse a partial device tree blob, which is
> > structurally independent of any toplevel blob.
> > Previously, this code assumed that the blob comes from initial_boot_params.
> > Now, unflatten_partial_device_tree can take a blob from an arbitrary position,
> > and the location of the blob gets passed around to the various support functions.
> > Some of the functions are still tied to the initial_boot_params blob, although
> > perhaps they should get abstracted as well?
>
> At the very least, all the references in drivers/of should probably be
> abstracted. I'm not to worried about the stuff in arch/* unless the
> functions there are also needed for partial tree parsing.
>
> The code in unflatten_partial_device_tree is also (as you know) a
> blatant copy and paste from unflatten_device_tree. The two functions
> should be consolidated.
>
> Another question is what to do with the unflattened tree once it is
> unflattened. Some of the existing code expects the node to be part of
> the global tree. Those could either be refactored, or the new partial
> tree could be grafted into the global tree. Grafting will have the
> least impact, but it probably isn't a good idea in the long term.
> Grafting together unrelated trees seems messy to me.
I think I must have missed an earlier discussion. What's the use case
for multiple fdt blobs?
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
next prev parent reply other threads:[~2010-06-29 1:22 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1277747279-9236-1-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1277747279-9236-1-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-06-28 17:47 ` [PATCH] drivers/of: Make device tree code work on any arch Stephen Neuendorffer
[not found] ` <1277747279-9236-2-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1277747279-9236-2-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-06-28 17:47 ` [PATCH] of/fdt: Add unflatten_partial_device_tree Stephen Neuendorffer
[not found] ` <aa5152a0-4931-479a-bc89-78ac4922c7f1-RaUQJvECHiv5op9OF0Koj7jjLBE8jN/0@public.gmane.org>
2010-06-28 23:18 ` Grant Likely
[not found] ` <AANLkTilXgArDaFjv0RiTMeQBdU3bma4sTtLLbwN8lI4O-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-29 1:22 ` David Gibson [this message]
2010-06-29 2:40 ` Grant Likely
[not found] ` <cf16ff7b-9208-4f47-8cea-ed8a8e52d30e-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2010-06-29 16:25 ` M. Warner Losh
[not found] ` <20100629.102503.835458634865560451.imp-uzTCJ5RojNnQT0dZR+AlfA@public.gmane.org>
2010-06-29 16:52 ` Stephen Neuendorffer
2010-06-29 20:42 ` Grant Likely
2010-06-29 4:50 ` Stephen Neuendorffer
[not found] ` <7d85d675-2028-4942-a819-c97d2295ea3b-RaUQJvECHitCYczPSvLbDrjjLBE8jN/0@public.gmane.org>
2010-07-01 15:59 ` Stephen Neuendorffer
[not found] ` <71b1d294-48d9-4408-941c-2400174954e1-+Ck8Kgl/v0/nHLUNXTEFU7jjLBE8jN/0@public.gmane.org>
2010-07-02 4:18 ` David Gibson
2010-07-06 22:57 ` Grant Likely
[not found] ` <1277747279-9236-3-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1277747279-9236-3-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-06-28 17:47 ` [PATCH] arch/x86: Add support for device tree code Stephen Neuendorffer
[not found] ` <1277747279-9236-4-git-send-email-stephen.neuendorffer@xilinx.com>
[not found] ` <1277747279-9236-4-git-send-email-stephen.neuendorffer-gjFFaj9aHVfQT0dZR+AlfA@public.gmane.org>
2010-06-28 17:47 ` [PATCH] xilinx_pcipr: Added Xilinx reconfigurable PCI endpoint driver Stephen Neuendorffer
[not found] ` <eab0dbb2-2819-4d1e-b8fd-630fb0912b31-RaUQJvECHiv5op9OF0Koj7jjLBE8jN/0@public.gmane.org>
2010-06-28 22:23 ` Grant Likely
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=20100629012207.GG13509@yookeroo \
--to=david-xt8fgy+axnrb3ne2bgzf6laj5h9x9tb+@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.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