From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 24 Oct 2014 17:50:40 +0200 Subject: [U-Boot] [PATCH v2 01/11] fdt: Allow ft_board_setup() to report failure In-Reply-To: <1414112337-22735-1-git-send-email-sjg@chromium.org> References: <1414112337-22735-1-git-send-email-sjg@chromium.org> Message-ID: <20141024175040.0929b8fc@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 23 Oct 2014 18:58:47 -0600 Simon Glass 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 > --- > > 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 Thanks, Anatolij