Re: [PATCH v2 04/15] drm: of: try binding port parent node instead of the port itself

From: Maxime Ripard
Date: Wed Jul 23 2025 - 03:02:14 EST


On Tue, Jul 22, 2025 at 04:41:06PM +0200, Otto Pflüger wrote:
> The drm_of_component_probe function is intended to bind all devices in
> an OF graph given a set of ports linked using the "ports" property on a
> main device node. This means that it should also bind the components
> providing these ports, not just the components of other ports connected
> to them. In order to do this, it calls drm_of_component_match_add with
> a pointer to each port node after checking that its parent node is a
> device.
>
> However, when given a pointer to the port node, the compare_of callback
> does not match it with a device node and thus fails to detect that the
> node belongs to a component. Fix this by passing a pointer to the parent
> node here too.
>
> Currently only the Unisoc platform driver relies on this feature, which
> was previously broken and is fixed by this change. On other platforms,
> the "ports" property points to ports that are not part of a component,
> i.e. the components only have indirect connections to the main node.
>
> Signed-off-by: Otto Pflüger <otto.pflueger@xxxxxxxxx>

Should this get a Fixes tag?

Maxime

Attachment: signature.asc
Description: PGP signature