On 20 September 2017 at 05:50, Klaus Goger <klaus.go...@theobroma-systems.com> wrote: > The livetree codepath of ofnode_get_addr_size always used the "reg" > property for of_get_property. Use the property parameter of the function > call instead and check the return value if the property exists. > Otherwise return FDT_ADDR_T_NONE. > > This was discoverd while using SPI NOR with livetree. > spi_flash_decode_fdt checks for memory-map and will not fail with > livetree even if the property does not exist. > > Signed-off-by: Klaus Goger <klaus.go...@theobroma-systems.com> > Reviewed-by: Philipp Tomsich <philipp.toms...@theobroma-systems.com> > > --- > > drivers/core/ofnode.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-)
Reviewed-by: Simon Glass <s...@chromium.org> Applied to u-boot-dm thanks! _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot