Re: [PATCH v2] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2012-01-10 Thread Benjamin Herrenschmidt
On Fri, 2012-01-06 at 16:48 -0800, Doug Anderson wrote: > I know this is a long-dead thread, but I was a little curious about > the motivation here. Hi ! Sorry, I planned to reply earlier and then forgot about it... > I'm looking at trying to support CONFIG_CMDLINE_EXTEND (an ARM > Kconfig) in th

Re: [PATCH v2] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2012-01-06 Thread Doug Anderson
I know this is a long-dead thread, but I was a little curious about the motivation here. I'm looking at trying to support CONFIG_CMDLINE_EXTEND (an ARM Kconfig) in this function and don't know in which cases I should look at the CONFIG_CMDLINE and in which cases I should use whatever happened to b

Re: [PATCH v2] of: Change logic to overwrite cmd_line with CONFIG_CMDLINE

2011-09-19 Thread Grant Likely
On Tue, Sep 20, 2011 at 02:50:15PM +1000, 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 "data" is non empty

[PATCH v2] 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 "data" is non empty after the bootargs check. It allows arch code to have other mechanisms to retrieve

[PATCH v2] 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 "data" is non empty after the bootargs check. It allows arch code to have other mechanisms to retrieve