mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
of/fdt: Scan the root node properties earlier
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/[email protected]/
Signed-off-by: Rob Herring <[email protected]>
This commit is contained in:
1 parent
1613e604df
commit
554b662336
1 file changed
+4
-3
+4
-3
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user