All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Simon Glass <sjg@chromium.org>
Cc: u-boot@lists.denx.de,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Anton Ivanov <anton@binarly.io>
Subject: Re: [PATCH 2/2] dtc: libfdt: Introduce a can_assume check in fdt_check_full
Date: Wed, 27 May 2026 08:41:39 -0600	[thread overview]
Message-ID: <20260527144139.GD1858239@bill-the-cat> (raw)
In-Reply-To: <CAFLszTgeaOPAkcLR3eKm_s+feXMoHzs15ZY9KEnmM2wSrTNC+w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1130 bytes --]

On Tue, May 26, 2026 at 11:41:26PM -0500, Simon Glass wrote:
> Hi Tom,
> 
> On 2026-05-26T20:19:26, Tom Rini <trini@konsulko.com> wrote:
> > dtc: libfdt: Introduce a can_assume check in fdt_check_full
> >
> > The current upstream method of having a function omit various tests is
> > to use the can_assume macro. Take the logic we had previously been using
> > and instead make it a can_assume(PERFECT) check within fdt_check_full
> > itself.
> >
> > Signed-off-by: Tom Rini <trini@konsulko.com>
> >
> > scripts/dtc/libfdt/fdt_check.c | 2 ++
> >  1 file changed, 2 insertions(+)
> 
> > diff --git a/scripts/dtc/libfdt/fdt_check.c b/scripts/dtc/libfdt/fdt_check.c
> > @@ -21,6 +21,8 @@ int fdt_check_full(const void *fdt, size_t bufsize)
> >       const char *propname;
> >       bool expect_end = false;
> >
> > +     if (can_assume(PERFECT))
> > +             return 0;
> 
> Just to note that this of course affects image-fit.c too, so FITs are
> no-longer validated if used in SPL. People can change the mask though.

There's no functional change to what we have today, actually, really.

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2026-05-27 14:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-26 20:19 [PATCH 0/2] dtc: Resync fdt_check_full function Tom Rini
2026-05-26 20:19 ` [PATCH 1/2] dtc: Resync fdt_check_full() with upstream version v1.7.2-35-g52f07dcca47c Tom Rini
2026-05-27  4:41   ` Simon Glass
2026-05-26 20:19 ` [PATCH 2/2] dtc: libfdt: Introduce a can_assume check in fdt_check_full Tom Rini
2026-05-27  4:41   ` Simon Glass
2026-05-27 14:41     ` Tom Rini [this message]
2026-05-27  9:49   ` Rasmus Villemoes
2026-05-27 14:45     ` Tom Rini

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=20260527144139.GD1858239@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=anton@binarly.io \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=sjg@chromium.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.