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

Tom Rini trini at konsulko.com
Thu Sep 17 15:54:26 CEST 2020


On Sat, Sep 12, 2020 at 12:42:52PM +0200, Marek Vasut wrote:

> 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: c2f0950c33 ("lib: fdt: Convert fdtdes_setup_mem..() to livetree API")
> Signed-off-by: Marek Vasut <marek.vasut+renesas at gmail.com>
> Cc: Michal Simek <michal.simek at xilinx.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> Tested-by: Biju Das <biju.das.jz at bp.renesas.com>
> Reviewed-by: Michal Simek <michal.simek at xilinx.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200917/da12ad53/attachment.sig>


More information about the U-Boot mailing list