[U-Boot] [PATCH] core: ofnode: do not assert if node not valid in ofnode_get_name()

Simon Glass sjg at chromium.org
Wed Jul 24 19:48:40 UTC 2019


On Thu, 18 Jul 2019 at 20:24, Kever Yang <kever.yang at rock-chips.com> wrote:
>
> In some case with LIVE DT, some node always not valid, or not have
> a valid name, eg. blk driver add by mmc.
> Return fail instead of Assert for this kind of ofnode, and this
> help with assert happen from time to time when of_live is enabled
> and DEBUG is enabled.
>
> Signed-off-by: Kever Yang <kever.yang at rock-chips.com>
> ---
>
>  drivers/core/ofnode.c | 6 +++++-
>  1 file changed, 5 insertions(+), 1 deletion(-)

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


More information about the U-Boot mailing list