public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH 2/2] fdtgrep: fix fdtgrep_find_regions() error with some device trees
Date: Wed,  8 Jan 2020 21:35:16 +0100	[thread overview]
Message-ID: <20200108203516.22268-2-agust@denx.de> (raw)
In-Reply-To: <20200108203516.22268-1-agust@denx.de>

With some device trees (i.e. i.MX6 SoC) and longer REMOVE_PROPS list
the fdtgrep tool stops with "Internal error with fdtgrep_find_regions()".
Increase 'max_regions' count to avoid such errors.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 tools/fdtgrep.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/fdtgrep.c b/tools/fdtgrep.c
index 052d419692..8f71b1cd7f 100644
--- a/tools/fdtgrep.c
+++ b/tools/fdtgrep.c
@@ -778,7 +778,7 @@ static int do_fdtgrep(struct display_info *disp, const char *filename)
 {
 	struct fdt_region *region = NULL;
 	int max_regions;
-	int count = 100;
+	int count = 110;
 	char path[1024];
 	char *blob;
 	int i, ret;
-- 
2.17.1

  reply	other threads:[~2020-01-08 20:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-08 20:35 [PATCH 1/2] fdtgrep: fix typos in error output Anatolij Gustschin
2020-01-08 20:35 ` Anatolij Gustschin [this message]
2020-01-09 20:04   ` [PATCH 2/2] fdtgrep: fix fdtgrep_find_regions() error with some device trees Simon Glass
2020-01-10  7:58     ` Patrick DELAUNAY
2020-01-12 19:43       ` Anatolij Gustschin
2020-01-09 20:04 ` [PATCH 1/2] fdtgrep: fix typos in error output Simon Glass

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=20200108203516.22268-2-agust@denx.de \
    --to=agust@denx.de \
    --cc=u-boot@lists.denx.de \
    /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