From: Maxime Ripard <mripard@kernel.org>
To: "Otto Pflüger" <otto.pflueger@abscue.de>
Cc: David Airlie <airlied@gmail.com>, Simona Vetter <simona@ffwll.ch>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Thomas Zimmermann <tzimmermann@suse.de>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Orson Zhai <orsonzhai@gmail.com>,
Baolin Wang <baolin.wang@linux.alibaba.com>,
Chunyan Zhang <zhang.lyra@gmail.com>,
Kevin Tang <kevin.tang@unisoc.com>,
dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 04/15] drm: of: try binding port parent node instead of the port itself
Date: Wed, 23 Jul 2025 09:02:02 +0200 [thread overview]
Message-ID: <20250723-bandicoot-of-simple-support-b42bcb@houat> (raw)
In-Reply-To: <20250722-ums9230-drm-v2-4-054276ec213d@abscue.de>
[-- Attachment #1: Type: text/plain, Size: 1165 bytes --]
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@abscue.de>
Should this get a Fixes tag?
Maxime
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 273 bytes --]
next prev parent reply other threads:[~2025-07-23 7:02 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-22 14:41 [PATCH v2 00/15] drm: sprd: Make the Unisoc DRM driver usable on UMS9230 Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 01/15] dt-bindings: display: sprd: adapt for UMS9230 support Otto Pflüger
2025-07-23 7:50 ` Krzysztof Kozlowski
2025-07-22 14:41 ` [PATCH v2 02/15] dt-bindings: display: sprd: add memory-region property Otto Pflüger
2025-07-23 7:51 ` Krzysztof Kozlowski
2025-07-22 14:41 ` [PATCH v2 03/15] dt-bindings: display: sprd: allow attaching a DSI panel Otto Pflüger
2025-07-23 7:54 ` Krzysztof Kozlowski
2025-07-23 8:03 ` Krzysztof Kozlowski
2025-07-22 14:41 ` [PATCH v2 04/15] drm: of: try binding port parent node instead of the port itself Otto Pflüger
2025-07-23 7:02 ` Maxime Ripard [this message]
2025-07-22 14:41 ` [PATCH v2 05/15] drm: sprd: remove plane and crtc destroy callbacks Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 06/15] drm: sprd: register a DSI bridge and move init code to pre_enable Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 07/15] drm: sprd: add support for UMS9230 DSI PLL Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 08/15] drm: sprd: fix DSI rate and PLL setup code Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 09/15] drm: sprd: select REGMAP in Kconfig Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 10/15] drm: sprd: add clock gating support Otto Pflüger
2025-07-23 7:00 ` Maxime Ripard
2025-07-23 8:32 ` Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 11/15] drm: sprd: add support for newer DPU versions Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 12/15] drm: sprd: always initialize DPU and DSI registers Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 13/15] drm: sprd: do not access IOMMU registers Otto Pflüger
2025-07-22 14:41 ` [PATCH v2 14/15] drm: sprd: implement IOMMU-based buffer management Otto Pflüger
2025-07-23 22:43 ` kernel test robot
2025-07-22 14:41 ` [PATCH v2 15/15] drm: sprd: add fbdev support Otto Pflüger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250723-bandicoot-of-simple-support-b42bcb@houat \
--to=mripard@kernel.org \
--cc=airlied@gmail.com \
--cc=baolin.wang@linux.alibaba.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=kevin.tang@unisoc.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=maarten.lankhorst@linux.intel.com \
--cc=orsonzhai@gmail.com \
--cc=otto.pflueger@abscue.de \
--cc=robh@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
--cc=zhang.lyra@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).