From: Luo Liu <Luo.Liu@cixtech.com>
To: 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: [PATCH v6 0/3] drm/komeda: use the bridge connector
Date: Tue, 1 Dec 2026 11:24:32 +0800 [thread overview]
Message-ID: <20261201032435.969586-1-Luo.Liu@cixtech.com> (raw)
Bridges following the new DRM bridge model no longer create a connector
themselves: the display driver has to attach them with
DRM_BRIDGE_ATTACH_NO_CONNECTOR and create one connector for the whole
chain with drm_bridge_connector_init().
drm_bridge_connector_init() creates the connector with
drmm_connector_init(), which does not allow a ->destroy hook, so the mode
configuration has to be released by DRM as well. The first patch switches
komeda to drmm_mode_config_init() and adapts the private object cleanup to
the new teardown order, as a preparation for the connector switch.
The second patch converts komeda to the new model.
The third patch frees the interrupt before the mode configuration and
drm->dev_private are torn down, so the shared interrupt handler cannot
dereference a cleared dev_private.
Changes in v6:
- Rebased on drm-misc/drm-misc-next.
- Swapped the first two patches, so the drmm_mode_config_init() change
comes first as a preparation for the connector switch.
- Reworded the drmm_mode_config_init() changelog accordingly.
Luo Liu (3):
drm/komeda: Use drmm_mode_config_init()
drm/komeda: Use the bridge connector
drm/komeda: Free the IRQ before clearing dev_private
drivers/gpu/drm/arm/display/Kconfig | 2 +
.../gpu/drm/arm/display/komeda/komeda_crtc.c | 18 ++++++--
.../gpu/drm/arm/display/komeda/komeda_kms.c | 41 +++++++++++--------
.../gpu/drm/arm/display/komeda/komeda_kms.h | 2 +-
.../arm/display/komeda/komeda_private_obj.c | 23 ++++++++---
5 files changed, 61 insertions(+), 25 deletions(-)
--
2.25.1
next reply other threads:[~2026-12-01 3:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 3:24 Luo Liu [this message]
2026-12-01 3:24 ` [PATCH v6 1/3] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-12-01 8:47 ` Luca Ceresoli
2026-12-01 3:24 ` [PATCH v6 2/3] drm/komeda: Use the bridge connector Luo Liu
2026-12-01 3:24 ` [PATCH v6 3/3] drm/komeda: Free the IRQ before clearing dev_private Luo Liu
2026-12-01 8:47 ` Luca Ceresoli
2026-12-01 9:13 ` Liviu Dudau
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=20261201032435.969586-1-Luo.Liu@cixtech.com \
--to=luo.liu@cixtech.com \
--cc=Ayan.Halder@arm.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=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®