Re: [PATCH 06/20] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2011-09-19 Thread Grant Likely
On Mon, Sep 19, 2011 at 10:30 PM, Grant Likely wrote: > On Mon, Sep 19, 2011 at 9:44 PM, Benjamin Herrenschmidt > wrote: >> We used to overwrite with CONFIG_CMDLINE if we found a chosen >> node but failed to get bootargs out of it or they were empty, >> unless CONFIG_CMDLINE_FORCE is set. >> >> I

Re: [PATCH 06/20] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2011-09-19 Thread Benjamin Herrenschmidt
On Mon, 2011-09-19 at 22:30 -0600, Grant Likely wrote: > On Mon, Sep 19, 2011 at 9:44 PM, Benjamin Herrenschmidt > wrote: > > We used to overwrite with CONFIG_CMDLINE if we found a chosen > > node but failed to get bootargs out of it or they were empty, > > unless CONFIG_CMDLINE_FORCE is set. > >

Re: [PATCH 06/20] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2011-09-19 Thread Grant Likely
On Mon, Sep 19, 2011 at 9:44 PM, Benjamin Herrenschmidt wrote: > We used to overwrite with CONFIG_CMDLINE if we found a chosen > node but failed to get bootargs out of it or they were empty, > unless CONFIG_CMDLINE_FORCE is set. > > Instead change that to overwrite if cmd_line is non empty after >

[PATCH 06/20] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2011-09-19 Thread Benjamin Herrenschmidt
We used to overwrite with CONFIG_CMDLINE if we found a chosen node but failed to get bootargs out of it or they were empty, unless CONFIG_CMDLINE_FORCE is set. Instead change that to overwrite if cmd_line is non empty after the bootargs check. It allows arch code to have other mechanisms to retrie