From: "Luca Ceresoli" <luca.ceresoli@bootlin.com>
To: "Luo Liu" <Luo.Liu@cixtech.com>,
"Maarten Lankhorst" <maarten.lankhorst@linux.intel.com>,
"Maxime Ripard" <mripard@kernel.org>,
"Thomas Zimmermann" <tzimmermann@suse.de>,
"Liviu Dudau" <liviu.dudau@arm.com>,
"Russell King" <linux@armlinux.org.uk>,
<dri-devel@lists.freedesktop.org>
Cc: "Ayan Halder" <Ayan.Halder@arm.com>,
"Andrzej Hajda" <andrzej.hajda@intel.com>,
"Neil Armstrong" <neil.armstrong@linaro.org>,
"Robert Foss" <rfoss@kernel.org>,
"Laurent Pinchart" <laurent.pinchart@ideasonboard.com>,
"Jonas Karlman" <jonas@kwiboo.se>,
"Jernej Skrabec" <jernej.skrabec@gmail.com>,
"Kory Maincent" <kory.maincent@bootlin.com>,
"Luca Ceresoli" <luca.ceresoli@bootlin.com>,
"David Airlie" <airlied@gmail.com>,
"Simona Vetter" <simona@ffwll.ch>, <linux-kernel@vger.kernel.org>,
<cix-kernel-upstream@cixtech.com>, <Wuyi.Shen@cixtech.com>
Subject: Re: [PATCH v3 0/4] drm/komeda: Use the bridge connector
Date: Fri, 27 Nov 2026 18:05:27 +0100 [thread overview]
Message-ID: <DN65NU9ZTJQH.1GRA0TZTLGY0I@bootlin.com> (raw)
In-Reply-To: <20261124094119.3220267-1-Luo.Liu@cixtech.com>
Hello Luo,
On Tue Nov 24, 2026 at 10:41 AM CET, Luo Liu wrote:
> The first patch converts komeda to the new DRM bridge model. Bridges
> following that model no longer create a connector themselves, so the
> display driver attaches them with DRM_BRIDGE_ATTACH_NO_CONNECTOR and
> creates one connector for the whole chain with
> drm_bridge_connector_init().
>
> The second patch fixes the teardown path that the conversion exposes.
> drm_bridge_connector_init() creates the connector with
> drmm_connector_init(), which provides no ->destroy hook and leaves the
> cleanup to a managed action. The drm_mode_config_cleanup() call in
> komeda_kms_detach(), and in the komeda_kms_attach() error paths, drops
> the connector references directly, so drm_connector_free() ends up
> calling the NULL ->destroy pointer.
>
> Switching to drmm_mode_config_init() lets the core release the mode
> configuration after the connector cleanup actions have run. The komeda
> private objects are then finalized by walking the pipelines instead of
> mode_config.privobj_list, which also holds the bridges that the encoder
> cleanup releases.
>
> The third patch fixes a latent interrupt race found in review. The IRQ
> is still registered after komeda_kms_detach(), and the
> komeda_kms_attach() error path, clear drm->dev_private, so a shared
> interrupt can reach komeda_kms_irq_handler() and dereference a NULL
> mdev. It is independent of the conversion.
>
> The fourth patch fixes the tda998x bridge, which accepts the
> connector-less attach flag but keeps using its own connector. In that
> mode the connector is never initialised, so the bridge reads an empty
> display_info and ELD and stays in DVI mode without sending hotplug
> events. Use the connector provided to the detect and EDID read
> operations, report hotplug through drm_bridge_hpd_notify() and
> advertise interlaced mode support through the bridge.
>
> Changes in v3:
> - Add a fix for the tda998x bridge, which accepts
> DRM_BRIDGE_ATTACH_NO_CONNECTOR but keeps using its own connector.
There are two v3 series you've sent the same day. Which is the right one to
review?
Please reply to one of them saying "ignore this series, it was sent by
mistake" or similar.
Luca
--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2026-11-27 17:05 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 9:41 Luo Liu
2026-11-24 9:41 ` [PATCH v3 1/4] " Luo Liu
2026-11-24 9:41 ` [PATCH v3 2/4] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-11-24 9:41 ` [PATCH v3 3/4] drm/komeda: Free the IRQ before clearing dev_private Luo Liu
2026-11-24 9:41 ` [PATCH v3 4/4] drm/bridge: tda998x: fix DRM_BRIDGE_ATTACH_NO_CONNECTOR support Luo Liu
2026-11-27 17:05 ` Luca Ceresoli [this message]
-- strict thread matches above, loose matches on Subject: below --
2026-11-24 9:39 [PATCH v3 0/4] drm/komeda: Use the bridge connector Luo Liu
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=DN65NU9ZTJQH.1GRA0TZTLGY0I@bootlin.com \
--to=luca.ceresoli@bootlin.com \
--cc=Ayan.Halder@arm.com \
--cc=Luo.Liu@cixtech.com \
--cc=Wuyi.Shen@cixtech.com \
--cc=airlied@gmail.com \
--cc=andrzej.hajda@intel.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jernej.skrabec@gmail.com \
--cc=jonas@kwiboo.se \
--cc=kory.maincent@bootlin.com \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=liviu.dudau@arm.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®