From: Sean Edmond <seanedmond@microsoft.com>
To: u-boot@lists.denx.de
Cc: Sean Edmond <seanedmond@microsoft.com>, Simon Glass <sjg@chromium.org>
Subject: [PATCH v6 4/5] dm: core: Modify default for OFNODE_MULTI_TREE
Date: Thu, 30 Nov 2023 16:54:43 -0800 [thread overview]
Message-ID: <20231201005507.2080396-5-seanedmond@microsoft.com> (raw)
In-Reply-To: <20231201005507.2080396-1-seanedmond@microsoft.com>
There is a preference to use the "ofnode" API for FDT fixups
moving forward. The FDT fixup will usually be for the kernel FDT. To
fixup the kernel FDT with the ofnode API, it's required to set the
OFNODE_MULTI_TREE option.
To ensure existing users of kaslr fdt fixup are not impacted, Let's modify
the default value for OFNODE_MULTI_TREE to ensure it's always set.
This will cause a 1007 byte increase in the code size.
Signed-off-by: Sean Edmond <seanedmond@microsoft.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
---
(no changes since v5)
Changes in v5:
- Always enable OFNODE_MULTI_TREE
Changes in v4:
- Fix compile issue when CONFIG_OF_CONTROL not set
Changes in v2:
- Change default config for OFNODE_MULTI_TREE (y if !OF_LIVE)
drivers/core/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/core/Kconfig b/drivers/core/Kconfig
index 737d4590d5b..c01a8dc7e0a 100644
--- a/drivers/core/Kconfig
+++ b/drivers/core/Kconfig
@@ -423,7 +423,8 @@ config DM_DEV_READ_INLINE
config OFNODE_MULTI_TREE
bool "Allow the ofnode interface to access any tree"
- default y if EVENT && !DM_DEV_READ_INLINE && !DM_INLINE_OFNODE
+ depends on OF_CONTROL
+ default y
help
Normally U-Boot makes use of its control FDT, the one used to bind
devices and provide options. In some cases, U-Boot must also process
--
2.42.0
next prev parent reply other threads:[~2023-12-01 0:56 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-01 0:54 [PATCH v6 0/5] Populate kaslr seed with RNG Sean Edmond
2023-12-01 0:54 ` [PATCH v6 1/5] fdt: common API to populate kaslr seed Sean Edmond
2023-12-01 0:54 ` [PATCH v6 2/5] fdt: kaslr seed from RNG device Sean Edmond
2023-12-01 0:54 ` [PATCH v6 3/5] cmd: kaslrseed: Use common API to fixup FDT Sean Edmond
2023-12-01 0:54 ` Sean Edmond [this message]
2023-12-01 0:54 ` [PATCH v6 5/5] fdt: Fix compile error for !OFNODE_MULTI_TREE Sean Edmond
2023-12-16 17:09 ` [PATCH v6 0/5] Populate kaslr seed with RNG Tom Rini
2023-12-16 19:57 ` Tom Rini
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=20231201005507.2080396-5-seanedmond@microsoft.com \
--to=seanedmond@microsoft.com \
--cc=sjg@chromium.org \
--cc=u-boot@lists.denx.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