Re: [PATCH v10 2/2] i2c: mux: Propagate firmware nodes to channel adapters

From: Peter Rosin

Date: Thu Sep 10 2026 - 10:07:25 EST


On Mon, Sep 07, 2026 at 11:26:23PM -0700, Ahmad Byagowi wrote:
> Device Tree channel nodes are associated with the adapters created by
> i2c-mux, but equivalent firmware-node descriptions are not.
>
> Use generic firmware-node operations for the existing channel lookup
> and associate the returned node with the adapter. Do not restrict the
> lookup by firmware-node type, so Device Tree, software nodes, and ACPI
> descriptions all follow the same property traversal. The existing
> acpi_preset_companion() call remains in place for the standard ACPI
> channel association.
>
> Keep a separate reference to the node returned by the generic lookup
> because acpi_preset_companion() may replace the device's primary
> firmware node. Release the saved reference after adapter deletion.
>
> Signed-off-by: Ahmad Byagowi <ahmadexp@xxxxxxxxx>

Acked-by: Peter Rosin <peda@xxxxxxxxxx>

Cheers,
Peter