[U-Boot] [PATCH v2 1/2] fdt: prevent clearing memory node if there are no banks

Simon Glass sjg at chromium.org
Mon Jul 20 15:21:06 CEST 2015


On 20 June 2015 at 17:29, Andre Przywara <osp at andrep.de> wrote:
> Avoid clearing the reg property in the memory DT node if no memory
> banks have been specified for a board (CONFIG_NR_DRAM_BANKS == 0).
> This allows boards to let U-Boot skip the DT memory tinkering in case
> other firmware has already setup the node properly before.
> This should be safe as all callers of fdt_fixup_memory_banks that use
> a computed <banks> value put at least 1 in there.
> Add some documentation comments to the header file.
>
> Signed-off-by: Andre Przywara <osp at andrep.de>
> ---
> Hi Tom,
>
> if you haven't applied the last version of this patch, consider using
> this version instead, which has Rob's comment addressed (bailing out
> early).
>
> Cheers,
> Andre.
>
>  common/fdt_support.c  |  3 +++
>  include/fdt_support.h | 26 ++++++++++++++++++++++++++
>  2 files changed, 29 insertions(+)

I almost applied v1 which was assigned to me in patchwork. I'll pick
up just this patch (not 2/2).

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


More information about the U-Boot mailing list