mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v7 0/4] drm/komeda: use the bridge connector
@ 2026-12-01  9:24 Luo Liu
  2026-12-01  9:24 ` [PATCH v7 1/4] drm/komeda: Use dev_err_probe() when attaching a bridge Luo Liu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Luo Liu @ 2026-12-01  9:24 UTC (permalink / raw)
  To: Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann, Liviu Dudau,
	Russell King, dri-devel
  Cc: Ayan Halder, Andrzej Hajda, Neil Armstrong, Robert Foss,
	Laurent Pinchart, Jonas Karlman, Jernej Skrabec, Kory Maincent,
	Luca Ceresoli, David Airlie, Simona Vetter, linux-kernel,
	cix-kernel-upstream, Wuyi.Shen

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().

komeda_attach_bridge() is reached from the probe path, so the first patch
reports its attach failures with dev_err_probe().

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 second 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 third patch converts komeda to the new model.

The fourth 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 v7:
- Added a preparation patch that uses dev_err_probe() when attaching a
  bridge, and used dev_err_probe() for the bridge connector init failure.

Luo Liu (4):
  drm/komeda: Use dev_err_probe() when attaching a bridge
  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  | 17 ++++++--
 .../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, 59 insertions(+), 26 deletions(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-01 10:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-12-01  9:24 [PATCH v7 0/4] drm/komeda: use the bridge connector Luo Liu
2026-12-01  9:24 ` [PATCH v7 1/4] drm/komeda: Use dev_err_probe() when attaching a bridge Luo Liu
2026-12-01  9:24 ` [PATCH v7 2/4] drm/komeda: Use drmm_mode_config_init() Luo Liu
2026-12-01  9:24 ` [PATCH v7 3/4] drm/komeda: Use the bridge connector Luo Liu
2026-12-01  9:24 ` [PATCH v7 4/4] drm/komeda: Free the IRQ before clearing dev_private Luo Liu
2026-12-01 10:22 ` [PATCH v7 0/4] drm/komeda: use the bridge connector Luca Ceresoli

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®