Skip to content
Snippets Groups Projects
Commit 81d0cef3 authored by Marek Vasut's avatar Marek Vasut Committed by Tom Rini
Browse files

lib: fdt: Fix fdtdec_setup_mem..() conversion to livetree API


Repair incorrectly negated condition in the original patch which broke
DT memory node parsing on everything which has more than one DT memory
node, e.g. R-Car3.

In case multiple valid memory nodes are present in the DT, the original
patch would complete parsing cycle for the first memory node, then move
on to the next one, identify it as a valid, and end the parsing. The fix
is to invert the condition, to make the code behave as it did before the
livetree conversion, so it would continue parsing the subsequent memory
nodes as well.

Fixes: c2f0950c ("lib: fdt: Convert fdtdes_setup_mem..() to livetree API")
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
Tested-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 7def4e62
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment