Re: [U-Boot] [PATCH] fdt: Fixup only valid memory banks

2018-01-30 Thread Stephen Warren
On 01/30/2018 03:34 AM, Thierry Reding wrote: From: Thierry Reding Memory banks with address 0 and size 0 are empty and should not be passed to the OS via device tree. if (!banks) return 0; + for (i = 0; i < banks; i++) + if

Re: [U-Boot] [PATCH] fdt: Fixup only valid memory banks

2018-01-30 Thread Thierry Reding
On Tue, Jan 30, 2018 at 12:41:15PM +0100, Lothar Waßmann wrote: > Hi, > > On Tue, 30 Jan 2018 11:34:17 +0100 Thierry Reding wrote: > > From: Thierry Reding > > > > Memory banks with address 0 and size 0 are empty and should not be > > passed to the OS via device tree. > > >

Re: [U-Boot] [PATCH] fdt: Fixup only valid memory banks

2018-01-30 Thread Lothar Waßmann
Hi, On Tue, 30 Jan 2018 11:34:17 +0100 Thierry Reding wrote: > From: Thierry Reding > > Memory banks with address 0 and size 0 are empty and should not be > passed to the OS via device tree. > > Signed-off-by: Thierry Reding > --- >

[U-Boot] [PATCH] fdt: Fixup only valid memory banks

2018-01-30 Thread Thierry Reding
From: Thierry Reding Memory banks with address 0 and size 0 are empty and should not be passed to the OS via device tree. Signed-off-by: Thierry Reding --- common/fdt_support.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git