All of lore.kernel.org
 help / color / mirror / Atom feed
From: Timur Tabi <timur@freescale.com>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org,
	Stuart Yoder <stuart.yoder@freescale.com>
Subject: Re: [PATCH] powerpc: delete boot-cpu and chosen nodes from all DTS files
Date: Wed, 14 Feb 2007 15:58:01 -0600	[thread overview]
Message-ID: <45D385E9.4020808@freescale.com> (raw)
In-Reply-To: <1171487822.20192.163.camel@localhost.localdomain>

Benjamin Herrenschmidt wrote:

> In case somebody wants to use something else than uboot ? I'd like the
> base structure of the mandatory nodes to be there. /chosen is mandatory,
> so it should be there.

I just posted a new patch that just deletes linux,boot-cpu and leaves the 
'chosen' node alone.

However, there is a valid reason for *not* having a 'chosen' node in the DTS. 
Currently, U-Boot does not update the existing 'chosen' node.  Instead, it 
creates a new one.  This means that if one existed in the DTS, then there would 
be *two* in the device tree that is passed to the kernel.  There is no way to 
guarantee that the kernel will use the right one.

Of course, the real solution to this problem is to fix U-Boot.  However, there 
isn't any signed up to do that, and even if someone posted a patch right now, 
there's no telling when it will get applied.  And even if it got applied today, 
all current U-Boot installations would be broken.  Many of these systems will 
never be updated.

Therefore, I would say that having a 'chosen' node in the DTS is actually a 
*bad* thing, on systems that use U-Boot.

Another work-around would be to update the compiler to delete the chosen node 
when it builds the DTB.  That's not a bad idea, I think, but until that feature 
is implemented, the DTS files should not have a 'chosen' node.


-- 
Timur Tabi
Linux Kernel Developer @ Freescale

  reply	other threads:[~2007-02-14 21:58 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-13 23:34 [PATCH] powerpc: delete boot-cpu and chosen nodes from all DTS files Timur Tabi
2007-02-13 23:57 ` Benjamin Herrenschmidt
2007-02-14  5:15   ` Timur Tabi
2007-02-14  5:19     ` David Gibson
2007-02-14  5:24       ` Timur Tabi
2007-02-14 14:40       ` Jon Loeliger
2007-02-14  5:27     ` Benjamin Herrenschmidt
2007-02-14  5:31       ` Timur Tabi
2007-02-14  5:35         ` Benjamin Herrenschmidt
2007-02-14 14:03           ` Timur Tabi
2007-02-14 20:23             ` Guennadi Liakhovetski
2007-02-14 20:32               ` Timur Tabi
2007-02-14 20:47                 ` Guennadi Liakhovetski
2007-02-14 20:51                   ` Timur Tabi
2007-02-14 20:58                     ` Guennadi Liakhovetski
2007-02-14 20:54             ` Benjamin Herrenschmidt
2007-02-14 21:02               ` Timur Tabi
2007-02-14 21:17                 ` Benjamin Herrenschmidt
2007-02-14 21:58                   ` Timur Tabi [this message]
2007-02-14 22:53                     ` Benjamin Herrenschmidt
2007-02-14 23:37                   ` David Gibson
2007-02-14 21:09               ` [PATCH] powerpc: delete boot-cpu and chosen nodes from all DTSfiles Yoder Stuart-B08248
2007-02-14 23:37                 ` David Gibson
2007-02-15  1:45     ` [PATCH] powerpc: delete boot-cpu and chosen nodes from all DTS files Segher Boessenkool
  -- strict thread matches above, loose matches on Subject: below --
2007-02-13 16:47 Timur Tabi
2007-02-13 17:16 ` Kumar Gala
2007-02-13 17:20   ` Timur Tabi
2007-02-13 19:29   ` Timur Tabi
2007-02-15  1:42   ` Segher Boessenkool
2007-02-14  0:31 ` David Gibson
2007-02-14  5:18   ` Timur Tabi
2007-02-14  5:24     ` David Gibson
2007-02-14 14:05       ` Timur Tabi
2007-02-14 23:33         ` David Gibson
2007-02-14 23:47           ` Timur Tabi
2007-02-15  1:40           ` Segher Boessenkool
2007-02-15 16:18           ` Timur Tabi

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=45D385E9.4020808@freescale.com \
    --to=timur@freescale.com \
    --cc=benh@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.org \
    --cc=stuart.yoder@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.