[PATCH 2/2] fdtdec: Honor #address-cells and #size-cells in fdtdec_add_reserved_memory()

Simon Glass sjg at chromium.org
Wed May 20 16:20:24 CEST 2020


Hi Bin,

On Wed, 20 May 2020 at 00:38, Bin Meng <bmeng.cn at gmail.com> wrote:
>
> From: Bin Meng <bin.meng at windriver.com>
>
> At present fdtdec_add_reserved_memory() calls fdtdec_get_addr_size()
> to get address and size for the subnodes of /reserved-memory node.
>
> We should honor #address-cells and #size-cells properties in the
> parent node.
>
> Signed-off-by: Bin Meng <bin.meng at windriver.com>
> ---
>
>  lib/fdtdec.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

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

Are there no tests for this?


More information about the U-Boot mailing list