[PATCH 0/2] drm/komeda: Use the bridge connector
From: Luo Liu
Date: Tue Nov 24 2026 - 01:55:00 EST
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