Re: [PATCH v7 00/10] of: teach overlay code to keep /aliases in sync
From: Rob Herring
Date: Thu Sep 17 2026 - 17:41:44 EST
On Mon, Aug 31, 2026 at 06:29:18PM -0700, Abdurrahman Hussain wrote:
> /aliases entries added by a device-tree overlay are stored in the live
> tree but never enter the global aliases_lookup list that of_alias_scan()
> builds at boot. As a result, of_alias_get_id() returns -ENODEV for
> aliases declared inside overlays, and any driver that relies on
> alias-based numbering (i2c-xiic, spi, tty, mmc, ...) silently loses its
> pinned id and falls back to auto-assignment.
[...]
> Assisted-by: Claude:claude-fable-5 [Claude Code]
> Signed-off-by: Abdurrahman Hussain <abdurrahman@xxxxxxxxxx>
> ---
> Abdurrahman Hussain (10):
> of: hold a reference on of_aliases during alias path resolution
> of: update /aliases lookup on reconfig notifications
> of/overlay: look up absolute target-paths absolutely
> of/overlay: put property on deadprops only after changeset add succeeds
> of/overlay: only treat a positive changeset id as registered
> of/overlay: don't leak fragment references when changeset init fails
> of/overlay: don't create "//" paths for fragments targeting the root
Patches 4-7 applied.
> of/overlay: return ERR_PTR from dup_and_fixup_symbol_prop()
> of/overlay: rewrite /aliases path values to live-tree paths
> of: unittest: cover /aliases updates from overlay apply/revert