[PATCH v6 0/3] drm/komeda: use the bridge connector
From: Luo Liu
Date: Mon Nov 30 2026 - 22:24:49 EST
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