On Wed, Oct 7, 2015 at 11:27 AM, <dwalker@xxxxxxxxxx> wrote:
On Tue, Oct 06, 2015 at 12:14:43PM -0500, Rob Herring wrote:I think so yes, but I'd hope that the else case is empty. You've
On Tue, Oct 6, 2015 at 10:47 AM, Daniel Walker <danielwa@xxxxxxxxx> wrote:Sorry I didn't respond sooner. I was waiting to see if there were more replies.
It looks like there's some seepage of cmdline stuff intoNice series in general. I've had passing desire to do this every time
the generic device tree code. This conflicts with the
generic cmdline implementation so I remove it in the case
when that's enabled.
I run into the command line code.
The DT handling of the command line is generic across architectures.
The current design is working around that the kernel command line code
is not that way. I think we can take this a bit further by making the
generic DT code add the command line string directly rather than
relying on the arch to do that. Then we can remove all command line
handling from the arch code. I would also look at whether we can make
boot_command_line static rather than directly accessed. We might have
to leave it public for now, but could treat it as static for generic
cmdline case.
One of my colleague suggested something similar, I was reluctant to change anything
prior to sending it out so I could get more feedback on the direction.
So your suggesting this patch be something like,
#ifdef CONFIG_GENERIC_CMDLINE
// call generic cmdline functions
#else
// keep what's there currently
#endif
converted the hard arches already. I'd guess the rest using DT would
be easy to convert as they either don't use DT for command line at all
or always use it.