projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1613e60
)
of/fdt: Scan the root node properties earlier
author
Rob Herring
<robh@kernel.org>
Wed, 29 Aug 2018 22:20:46 +0000
(17:20 -0500)
committer
Rob Herring (Arm)
<robh@kernel.org>
Fri, 31 May 2024 13:33:54 +0000
(08:33 -0500)
Scan the root node properties (#{size,address}-cells) earlier, so that
the dt_root_addr_cells and dt_root_size_cells variables are initialized
and can be used.
Link:
https://lore.kernel.org/all/20180830190523.31474-2-robh@kernel.org/
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/of/fdt.c
b/drivers/of/fdt.c
index a8a04f27915b93f1d04e45aa882c48a041192c09..00bb8c9b62fad242ae379ca95994adcb08f5fa14 100644
(file)
--- a/
drivers/of/fdt.c
+++ b/
drivers/of/fdt.c
@@
-1170,6
+1170,10
@@
bool __init early_init_dt_verify(void *params)
initial_boot_params = params;
of_fdt_crc32 = crc32_be(~0, initial_boot_params,
fdt_totalsize(initial_boot_params));
+
+ /* Initialize {size,address}-cells info */
+ early_init_dt_scan_root();
+
return true;
}
@@
-1178,9
+1182,6
@@
void __init early_init_dt_scan_nodes(void)
{
int rc;
- /* Initialize {size,address}-cells info */
- early_init_dt_scan_root();
-
/* Retrieve various information from the /chosen node */
rc = early_init_dt_scan_chosen(boot_command_line);
if (rc)