Re: [RFC PATCH 11/15] flattree: Handle unknown tags

From: Luca Ceresoli

Date: Wed Apr 01 2026 - 11:41:29 EST


On Tue Feb 10, 2026 at 6:33 PM CET, Herve Codina wrote:
> The structured tag value definition introduced recently gives the
> ability to ignore unknown tags without any error when they are read.
>
> Handle those structured tag.
>
> Signed-off-by: Herve Codina <herve.codina@xxxxxxxxxxx>

> +++ b/tests/unknown_tags_can_skip.dtb.dts.expect
> @@ -0,0 +1,19 @@
> +/dts-v1/;
> +
> +/ {
> + prop-int = <0x01>;
> + prop-str = "abcd";
> +
> + subnode1 {
> + prop-int = <0x01 0x02>;
> + };
> +
> + subnode2 {
> + prop-int1 = <0x01 0x02>;
> + prop-int2 = <0x01 0x02>;
> +
> + subsubnode {
> + prop-int = <0x01 0x02>;
> + };
> + };
> +};

Of course this will need updating in case you adopt the changes to the
tests I suggested in patch 10.

With that done:
Reviewed-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com