[U-Boot] [PATCH v2 01/11] fdt: Allow ft_board_setup() to report failure

Anatolij Gustschin agust at denx.de
Fri Oct 24 17:50:40 CEST 2014


On Thu, 23 Oct 2014 18:58:47 -0600
Simon Glass <sjg at chromium.org> wrote:

> This function can fail if the device tree runs out of space. Rather than
> silently booting with an incomplete device tree, allow the failure to be
> detected.
> 
> Unfortunately this involves changing a lot of places in the code. I have
> not changed behvaiour to return an error where one is not currently
> returned, to avoid unexpected breakage.
> 
> Eventually it would be nice to allow boards to register functions to be
> called to update the device tree. This would avoid all the many functions
> to do this. However it's not clear yet if this should be done using driver
> model or with a linker list. This work is left for later.
> 
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
> 
> Changes in v2:
> - Fix return codes in board/amcc/sequoia/sequoia.c
> - Fix return codes in board/freescale/p1_p2_rdb/p1_p2_rdb.c
> - Fix return codes in board/freescale/p1_p2_rdb_pc/p1_p2_rdb_pc.c

Acked-by: Anatolij Gustschin <agust at denx.de>

Thanks,

Anatolij


More information about the U-Boot mailing list