linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/8] drivers: of: ifdef out cmdline section
@ 2018-09-27 16:55 Maksym Kokhan
  2018-09-27 21:07 ` Rob Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Maksym Kokhan @ 2018-09-27 16:55 UTC (permalink / raw)
  To: Rob Herring, Frank Rowand
  Cc: Daniel Walker, Daniel Walker, Andrii Bordunov, Ruslan Bilovol,
	devicetree, linux-kernel

From: Daniel Walker <danielwa@cisco.com>

It looks like there's some seepage of cmdline stuff into
the generic device tree code. This conflicts with the
generic cmdline implementation so I remove it in the case
when that's enabled.

Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Daniel Walker <danielwa@cisco.com>
Signed-off-by: Daniel Walker <danielwa@cisco.com>
Signed-off-by: Maksym Kokhan <maksym.kokhan@globallogic.com>
---
 drivers/of/fdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c
index 800ad25..74b85ad 100644
--- a/drivers/of/fdt.c
+++ b/drivers/of/fdt.c
@@ -1096,7 +1096,7 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
 	 * managed to set the command line, unless CONFIG_CMDLINE_FORCE
 	 * is set in which case we override whatever was found earlier.
 	 */
-#ifdef CONFIG_CMDLINE
+#if defined(CONFIG_CMDLINE) && !defined(CONFIG_GENERIC_CMDLINE)
 #if defined(CONFIG_CMDLINE_EXTEND)
 	strlcat(data, " ", COMMAND_LINE_SIZE);
 	strlcat(data, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/8] drivers: of: ifdef out cmdline section
  2018-09-27 16:55 [PATCH 2/8] drivers: of: ifdef out cmdline section Maksym Kokhan
@ 2018-09-27 21:07 ` Rob Herring
  2018-10-08 17:58   ` Maksym Kokhan
  0 siblings, 1 reply; 3+ messages in thread
From: Rob Herring @ 2018-09-27 21:07 UTC (permalink / raw)
  To: maksym.kokhan
  Cc: Frank Rowand, Daniel Walker, Daniel Walker, aborduno, rbilovol,
	devicetree, linux-kernel

On Thu, Sep 27, 2018 at 11:55 AM Maksym Kokhan
<maksym.kokhan@globallogic.com> wrote:
>
> From: Daniel Walker <danielwa@cisco.com>
>
> It looks like there's some seepage of cmdline stuff into
> the generic device tree code. This conflicts with the
> generic cmdline implementation so I remove it in the case
> when that's enabled.

What's preventing removing this or simplifying the DT code to just be
"give me the cmdline data from DT" and the common code deals with all
the combinations of config options.

Rob

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 2/8] drivers: of: ifdef out cmdline section
  2018-09-27 21:07 ` Rob Herring
@ 2018-10-08 17:58   ` Maksym Kokhan
  0 siblings, 0 replies; 3+ messages in thread
From: Maksym Kokhan @ 2018-10-08 17:58 UTC (permalink / raw)
  To: Rob Herring
  Cc: Frank Rowand, Daniel Walker, Daniel Walker, Andrii Bordunov,
	Ruslan Bilovol, devicetree, linux-kernel

Hi, Rob

On Fri, Sep 28, 2018 at 12:07 AM Rob Herring <robh+dt@kernel.org> wrote:
>
> On Thu, Sep 27, 2018 at 11:55 AM Maksym Kokhan
> <maksym.kokhan@globallogic.com> wrote:
> >
> > From: Daniel Walker <danielwa@cisco.com>
> >
> > It looks like there's some seepage of cmdline stuff into
> > the generic device tree code. This conflicts with the
> > generic cmdline implementation so I remove it in the case
> > when that's enabled.
>
> What's preventing removing this or simplifying the DT code to just be
> "give me the cmdline data from DT" and the common code deals with all
> the combinations of config options.

This code (handling built-in cmdline in old, non-generic way) is used by
some other architectures besides those, modified in our patches, so for
now we can't remove it.

Thanks,
Maksym

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-10-08 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 16:55 [PATCH 2/8] drivers: of: ifdef out cmdline section Maksym Kokhan
2018-09-27 21:07 ` Rob Herring
2018-10-08 17:58   ` Maksym Kokhan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).