From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org, Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: Re: [PATCH] of: fdt: justify fdt_machine_is_compatible parsing only the root node
Date: Wed, 13 Mar 2024 11:52:32 +0100 [thread overview]
Message-ID: <171032715299.1367229.18260746908926068209.b4-ty@pengutronix.de> (raw)
In-Reply-To: <20240313093145.3349370-1-a.fatoum@pengutronix.de>
On Wed, 13 Mar 2024 10:31:45 +0100, Ahmad Fatoum wrote:
> fdt_machine_is_compatible() is a lightweight way to check the top-level
> compatible without unflattening the DT or pulling in libfdt.
>
> The lightness is due to parsing only the root node and looking for the
> compatible right away. This assumes that no child nodes of the root node
> precede the compatible property. This is mandated by the specification
> and dtc throws a syntax error when attempting to violate this.
>
> [...]
Applied, thanks!
[1/1] of: fdt: justify fdt_machine_is_compatible parsing only the root node
https://git.pengutronix.de/cgit/barebox/commit/?id=3c8d123593cc (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
prev parent reply other threads:[~2024-03-13 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 9:31 Ahmad Fatoum
2024-03-13 10:52 ` Sascha Hauer [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=171032715299.1367229.18260746908926068209.b4-ty@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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