Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2040b527 authored by Josh Cartwright's avatar Josh Cartwright Committed by Grant Likely
Browse files

of: only scan for reserved mem when fdt present



When the reserved memory patches hit -next, several legacy (non-DT) boot
failures were detected and bisected down to that commit. There needs to
be some sanity checking whether a DT is even present before parsing the
reserved ranges.

Reported-by: default avatarKevin Hilman <khilman@linaro.org>
Signed-off-by: default avatarJosh Cartwright <joshc@codeaurora.org>
Tested-by: default avatarKevin Hilman <khilman@linaro.org>
Signed-off-by: default avatarGrant Likely <grant.likely@linaro.org>
parent 708b7eef
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -557,6 +557,9 @@ static int __init __fdt_scan_reserved_mem(unsigned long node, const char *uname,
 */
void __init early_init_fdt_scan_reserved_mem(void)
{
	if (!initial_boot_params)
		return;

	of_scan_flat_dt(__fdt_scan_reserved_mem, NULL);
	fdt_init_reserved_mem();
}