From: Luo Liu <Luo.Liu@cixtech.com>
To: liviu.dudau@arm.com, maarten.lankhorst@linux.intel.com,
mripard@kernel.org, tzimmermann@suse.de,
dri-devel@lists.freedesktop.org, cix-kernel-upstream@cixtech.com
Cc: airlied@gmail.com, simona@ffwll.ch, linux-kernel@vger.kernel.org,
Wuyi.Shen@cixtech.com
Subject: [PATCH 0/2] drm/komeda: Use the bridge connector
Date: Tue, 24 Nov 2026 14:54:44 +0800 [thread overview]
Message-ID: <20261124065446.3107248-1-Luo.Liu@cixtech.com> (raw)
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.
Luo Liu (2):
drm/komeda: Use the bridge connector
drm/komeda: Use drmm_mode_config_init()
drivers/gpu/drm/arm/display/Kconfig | 2 ++
.../gpu/drm/arm/display/komeda/komeda_crtc.c | 18 ++++++++--
.../gpu/drm/arm/display/komeda/komeda_kms.c | 36 +++++++++++--------
.../gpu/drm/arm/display/komeda/komeda_kms.h | 2 +-
.../arm/display/komeda/komeda_private_obj.c | 23 +++++++++---
5 files changed, 57 insertions(+), 24 deletions(-)
base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
--
2.25.1
next reply other threads:[~2026-11-24 6:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 6:54 Luo Liu [this message]
2026-11-24 6:54 ` [PATCH 1/2] " Luo Liu
2026-11-24 6:54 ` [PATCH 2/2] drm/komeda: Use drmm_mode_config_init() 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=20261124065446.3107248-1-Luo.Liu@cixtech.com \
--to=luo.liu@cixtech.com \
--cc=Wuyi.Shen@cixtech.com \
--cc=airlied@gmail.com \
--cc=cix-kernel-upstream@cixtech.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
--cc=liviu.dudau@arm.com \
--cc=maarten.lankhorst@linux.intel.com \
--cc=mripard@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®