From: Rob Herring <robh@kernel.org>
To: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
Frank Rowand <frowand.list@gmail.com>,
John Crispin <john@phrozen.org>,
Michael Ellerman <mpe@ellerman.id.au>,
Paul Mackerras <paulus@samba.org>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: [PATCH 0/3] of/fdt: Rework early FDT scanning functions
Date: Thu, 18 Nov 2021 12:12:09 -0600 [thread overview]
Message-ID: <20211118181213.1433346-1-robh@kernel.org> (raw)
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
next reply other threads:[~2021-11-18 18:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-18 18:12 Rob Herring [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211118181213.1433346-1-robh@kernel.org \
--to=robh@kernel.org \
--cc=benh@kernel.crashing.org \
--cc=devicetree@vger.kernel.org \
--cc=frowand.list@gmail.com \
--cc=john@phrozen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=tsbogend@alpha.franken.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).