Home
last modified time | relevance | path

Searched hist:"1 b189a920d58ba769b21ea19d6f94ec611e24729" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/core/
H A Dofnode.c1b189a920d58ba769b21ea19d6f94ec611e24729 Wed Sep 20 11:50:41 UTC 2017 Klaus Goger <klaus.goger@theobroma-systems.com> UPSTREAM: dm: ofnode: query correct property in livetree ofnode_get_addr_size

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.

Change-Id: Icc63d2edbccea6a9f17cdcb5818993d317736ede
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit 68a345294ac74505f17d65b003a7de836b3d9cba)