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

Luca Ceresoli
2026-04-01T15:15:25Z

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@bootlin.com>

> +++ 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@bootlin.com>

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering