From: Marek Vasut <marek.vasut@mailbox.org>
To: Luca Ceresoli <luca.ceresoli@bootlin.com>,
dri-devel@lists.freedesktop.org
Cc: Andrzej Hajda <andrzej.hajda@intel.com>,
David Airlie <airlied@gmail.com>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Jonas Karlman <jonas@kwiboo.se>,
Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
Maxime Ripard <mripard@kernel.org>,
Neil Armstrong <neil.armstrong@linaro.org>,
Robert Foss <rfoss@kernel.org>, Simona Vetter <simona@ffwll.ch>,
Thomas Zimmermann <tzimmermann@suse.de>,
linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2] drm/bridge: waveshare-dsi: Register and attach our DSI device at probe
Date: Mon, 2 Mar 2026 22:34:31 +0100 [thread overview]
Message-ID: <e9c7f67d-bfba-411a-80fb-956fd96e1037@mailbox.org> (raw)
In-Reply-To: <DG7YBVU2COFT.2JP8PKR4ZAKFT@bootlin.com>
On 2/6/26 3:34 PM, Luca Ceresoli wrote:
> Hi Marek,
>
> On Fri Feb 6, 2026 at 1:57 PM CET, Marek Vasut wrote:
>> In order to avoid any probe ordering issue, the best practice is to move
>> the secondary MIPI-DSI device registration and attachment to the
>> MIPI-DSI host at probe time.
>>
>> Besides solving the probe ordering problems, this makes the bridge work
>> with R-Car DU. The R-Car DU will attempt to locate the DSI host bridge in
>> its own rcar_du_probe()->rcar_du_modeset_init()->rcar_du_encoder_init()
>> by calling of_drm_find_bridge() which calls of_drm_find_and_get_bridge()
>> and iterates over bridge_list to locate the DSI host bridge.
>>
>> However, unless the WS driver calls mipi_dsi_attach() in probe(), the
>> DSI host bridge .attach callback rcar_mipi_dsi_host_attach() is not
>> called and the DSI host bridge is not added into bridge_list. Therefore
>> the of_drm_find_and_get_bridge() called from du_probe() will never find
>> the DSI host bridge and probe will indefinitelly fail with -EPROBE_DEFER.
>>
>> The circular dependency here is, that if rcar_du_encoder_init() would
>> manage to find the DSI host bridge, it would call the WS driver .attach
>> callback ws_bridge_bridge_attach(), but this is too late and can never
>> happen. This change avoids the circular dependency.
>>
>> Reviewed-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
>> Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
>
> Thanks for the very clear description! R-by confirmed.
Can this be applied now ?
next prev parent reply other threads:[~2026-03-02 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-06 12:57 Marek Vasut
2026-02-06 14:34 ` Luca Ceresoli
2026-03-02 21:34 ` Marek Vasut [this message]
2026-03-03 8:14 ` Luca Ceresoli
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=e9c7f67d-bfba-411a-80fb-956fd96e1037@mailbox.org \
--to=marek.vasut@mailbox.org \
--cc=Laurent.pinchart@ideasonboard.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=luca.ceresoli@bootlin.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@kernel.org \
--cc=neil.armstrong@linaro.org \
--cc=rfoss@kernel.org \
--cc=simona@ffwll.ch \
--cc=tzimmermann@suse.de \
/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
all inboxes | Powered by JetHome®