linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] of/fdt: Rework early FDT scanning functions
@ 2021-11-18 18:12 Rob Herring
  2021-11-18 18:12 ` [PATCH 1/3] of/fdt: Rework early_init_dt_scan_chosen() to call directly Rob Herring
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Rob Herring @ 2021-11-18 18:12 UTC (permalink / raw)
  To: Benjamin Herrenschmidt, Frank Rowand, John Crispin,
	Michael Ellerman, Paul Mackerras, Thomas Bogendoerfer
  Cc: devicetree, linux-kernel, linux-mips, linuxppc-dev

The early FDT scanning functions use of_scan_flat_dt() which implements 
its own node walking method. This function predates libfdt and is an 
unnecessary indirection. This series reworks 
early_init_dt_scan_chosen(), early_init_dt_scan_root(), and 
early_init_dt_scan_memory() to be called directly and use libfdt calls.

Ultimately, I want to remove of_scan_flat_dt(). Most of the remaining 
of_scan_flat_dt() users are in powerpc.

Rob


Rob Herring (3):
  of/fdt: Rework early_init_dt_scan_chosen() to call directly
  of/fdt: Rework early_init_dt_scan_root() to call directly
  of/fdt: Rework early_init_dt_scan_memory() to call directly

 arch/mips/ralink/of.c                |  16 +---
 arch/powerpc/kernel/prom.c           |  22 ++---
 arch/powerpc/mm/nohash/kaslr_booke.c |   4 +-
 drivers/of/fdt.c                     | 121 ++++++++++++++-------------
 include/linux/of_fdt.h               |   9 +-
 5 files changed, 79 insertions(+), 93 deletions(-)

-- 
2.32.0


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

end of thread, other threads:[~2021-11-24 17:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-18 18:12 [PATCH 0/3] of/fdt: Rework early FDT scanning functions Rob Herring
2021-11-18 18:12 ` [PATCH 1/3] of/fdt: Rework early_init_dt_scan_chosen() to call directly Rob Herring
2021-11-24 16:13   ` Frank Rowand
2021-11-18 18:12 ` [PATCH 2/3] of/fdt: Rework early_init_dt_scan_root() " Rob Herring
2021-11-24 16:20   ` Frank Rowand
2021-11-18 18:12 ` [PATCH 3/3] of/fdt: Rework early_init_dt_scan_memory() " Rob Herring
2021-11-24 16:58   ` Frank Rowand
2021-11-24 17:01 ` [PATCH 0/3] of/fdt: Rework early FDT scanning functions Frank Rowand

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).