Re: [PATCH v3] of/fdt: Rework early_init_dt_scan_memory() to call directly

2021-12-15 Thread Rob Herring
On Wed, Dec 15, 2021 at 4:13 AM Michael Ellerman wrote: > > Rob Herring writes: > > diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c > > index 5e216555fe4f..97d7607625ec 100644 > > --- a/drivers/of/fdt.c > > +++ b/drivers/of/fdt.c > > @@ -1078,49 +1078,50 @@ u64 __init dt_mem_next_cell(int s, con

Re: [PATCH v3] of/fdt: Rework early_init_dt_scan_memory() to call directly

2021-12-15 Thread Michael Ellerman
Rob Herring writes: > diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c > index 5e216555fe4f..97d7607625ec 100644 > --- a/drivers/of/fdt.c > +++ b/drivers/of/fdt.c > @@ -1078,49 +1078,50 @@ u64 __init dt_mem_next_cell(int s, const __be32 > **cellp) > /* > * early_init_dt_scan_memory - Look for

[PATCH v3] of/fdt: Rework early_init_dt_scan_memory() to call directly

2021-12-14 Thread Rob Herring
Use of the of_scan_flat_dt() function predates libfdt and is discouraged as libfdt provides a nicer set of APIs. Rework early_init_dt_scan_memory() to be called directly and use libfdt. Cc: John Crispin Cc: Thomas Bogendoerfer Cc: Michael Ellerman Cc: Benjamin Herrenschmidt Cc: Paul Mackerras