From: Tom Rini <trini@konsulko.com>
To: Wasim Khan <wasim.khan@oss.nxp.com>
Cc: priyanka.jain@nxp.com, v.sethi@nxp.com, u-boot@lists.denx.de,
Wasim Khan <wasim.khan@nxp.com>
Subject: Re: [PATCH] board: freescale: lx216x : increase fdt blob size
Date: Mon, 20 Sep 2021 08:04:26 -0400 [thread overview]
Message-ID: <20210920120426.GP8579@bill-the-cat> (raw)
In-Reply-To: <20210917121828.2554448-1-wasim.khan@oss.nxp.com>
[-- Attachment #1: Type: text/plain, Size: 1457 bytes --]
On Fri, Sep 17, 2021 at 02:18:28PM +0200, Wasim Khan wrote:
> From: Wasim Khan <wasim.khan@nxp.com>
>
> Increase fdt blob size for lx2160 and lx2162 series
> to fix below errors/warnings during device tree fixup.
>
> Unable to update property /soc/spi@2100000:status, err=FDT_ERR_NOSPACE
> Unable to update property /soc/spi@2110000:status, err=FDT_ERR_NOSPACE
> Unable to update property /soc/spi@2120000:status, err=FDT_ERR_NOSPACE
> WARNING: could not set reg FDT_ERR_NOSPACE.
> WARNING unable to set iommus: FDT_ERR_NOSPACE
>
> Signed-off-by: Wasim Khan <wasim.khan@nxp.com>
> ---
> board/freescale/lx2160a/lx2160a.c | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/board/freescale/lx2160a/lx2160a.c b/board/freescale/lx2160a/lx2160a.c
> index f505e82fb9..d03168d6a2 100644
> --- a/board/freescale/lx2160a/lx2160a.c
> +++ b/board/freescale/lx2160a/lx2160a.c
> @@ -828,10 +828,18 @@ int ft_board_setup(void *blob, struct bd_info *bd)
> u64 mc_memory_base = 0;
> u64 mc_memory_size = 0;
> u16 total_memory_banks;
> + int err;
> #if CONFIG_IS_ENABLED(TARGET_LX2160ARDB)
> u8 board_rev;
> #endif
>
> + err = fdt_increase_size(blob, 512);
> + if (err) {
> + printf("%s fdt_increase_size: err=%s\n", __func__,
> + fdt_strerror(err));
> + return 1;
> + }
> +
> ft_cpu_setup(blob, bd);
This should return the error we got from fdt_increase_size rather than
1.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
prev parent reply other threads:[~2021-09-20 12:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-17 12:18 [PATCH] board: freescale: lx216x : increase fdt blob size Wasim Khan
2021-09-20 12:04 ` Tom Rini [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210920120426.GP8579@bill-the-cat \
--to=trini@konsulko.com \
--cc=priyanka.jain@nxp.com \
--cc=u-boot@lists.denx.de \
--cc=v.sethi@nxp.com \
--cc=wasim.khan@nxp.com \
--cc=wasim.khan@oss.nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox