Re: [PATCH v2 04/10] libfdt: overlay: Factor out fixup and fragment path parsing helpers
From: Simon Glass
Date: Fri Oct 30 2026 - 08:51:44 EST
On 2026-10-28T21:46:49, Douglas Anderson <dianders@xxxxxxxxxxxx> wrote:
> libfdt: overlay: Factor out fixup and fragment path parsing helpers
>
> In preparation for updating the base device tree's `/__local_fixups__`
> node during `fdt_overlay_apply()`, factor out two helper functions in
> `libfdt/fdt_overlay.c`:
>
> - Factor out `overlay_parse_fixup_entry()` from
> `overlay_fixup_phandle()` to parse `"path:name:offset"` entries in
> `/__fixups__` properties.
> - Factor out `overlay_split_fragment_path()` from
> `overlay_symbol_update()` to validate and split
> `"/<fragment>/__overlay__[/<rel>]"` paths into the fragment name and
> relative subnode path.
>
> This commit is pure code movement with no functional change.
>
> Assisted-by: Gemini:gemini-pro-prerelease
> Signed-off-by: Douglas Anderson <dianders@xxxxxxxxxxxx>
>
> libfdt/fdt_overlay.c | 226 +++++++++++++++++++++++++++++++++++----------------
> 1 file changed, 154 insertions(+), 72 deletions(-)
Reviewed-by: Simon Glass <sjg@xxxxxxxxxxxx>