[U-Boot] [PATCH] dm: ofnode: query correct property in livetree ofnode_get_addr_size

sjg at google.com sjg at google.com
Fri Sep 29 21:00:29 UTC 2017


On 20 September 2017 at 05:50, Klaus Goger
<klaus.goger at 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.goger at theobroma-systems.com>
> Reviewed-by: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
>
> ---
>
>  drivers/core/ofnode.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm thanks!


More information about the U-Boot mailing list