Skip to contentSkip to conversation

drm/display: bridge-connector: attach encoder to the connector

PATCH Applied Luca Ceresoli 8 participants 62 messages Apr 23 – Apr 30

Subsystems (37)
lore
Share & tools
lore

Luca Ceresoli

author reviewer
#0 lore raw

v2 cover drm/display: bridge-connector: attach encoder to the connector

This series simplifies using the bridge-connector by removing the need to attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

* Patch 1 adds a drm_connector_attach_encoder() call at the end of drm_bridge_connector_init()
* The other patches remove drm_connector_attach_encoder() after all drm_bridge_connector_init() calls, ordered from the simplest ones (only the last one is somewhat non-obvious)

The Cc list is huge due to the many drivers touched. I sent v1 to a reduced Cc list to ensure there is an agreement about the overall idea. That seems to be the case, so now it's time to copy all drivers maintainers.

It would be nice to apply all of this series at once to avoid duplicated calls to drm_connector_attach_encoder() in the interim. That would be harmless beacuse drm_connector_attach_encoder() is idempotent, but unpleasant.

== Additional rationale (for the curious)

Besides making the usage of the bridge-connector a bit simpler, this series is in preparation for DRM bridge hotplug. Here's why, feel free to skip if you don't care.

The old bridge hotplug proposals I have sent in the past [1] were based on a hotplug-bridge driver to sit between the last fixed bridge and the first hotplugged bridge. Discussion with the community led to the need of removing the hotplug-bridge and let common DRM code handle hotplug. The common place of code that appears the most suitable for hotplug handling is the bridge-connector, which is by now the recommended way to handle connector instantiation after a bridge chain.

So I'm in the process of extending the bridge-connector to be the central point to handle bridge hotplug. Turns out the need to call drm_connector_attach_encoder() after drm_bridge_connector_init() has returned is adding big headaches to such work. So I'm send this long but simple series to both simplify bridge-connector usage and remove one obstacle from the bridge hotplug work. This series is relevant by itself anyway.

[1] https://lore.kernel.org/lkml/[email protected]/

== Grand plan

This is part of the work to support hotplug of DRM bridges. The grand plan was discussed in [0].

Here's the work breakdown (➜ marks the current series):

1. … add refcounting to DRM bridges struct drm_bridge,
based on devm_drm_bridge_alloc()
A. ✔ add new alloc API and refcounting (v6.16)
B. ✔ convert all bridge drivers to new API (v6.17)
C. ✔ kunit tests (v6.17)
D. ✔ add get/put to drm_bridge_add/remove() + attach/detach()
and warn on old allocation pattern (v6.17)
E. … add get/put on drm_bridge accessors
1. ✔ drm_bridge_chain_get_first_bridge(), add cleanup action (v6.18)
2. ✔ drm_bridge_get_prev_bridge() (v6.18)
3. ✔ drm_bridge_get_next_bridge() (v6.19)
4. ✔ drm_for_each_bridge_in_chain() (v6.19)
5. ✔ drm_bridge_connector_init (v6.19)
6. ✔ protect encoder bridge chain with a mutex (v7.2)
7. … of_drm_find_bridge
a. ✔ add of_drm_get_bridge() (v7.0),
convert basic direct users (v7.0-v7.1)
b. ✔ convert direct of_drm_get_bridge() users, part 2 (v7.0) c. ✔ convert direct of_drm_get_bridge() users, part 3 (v7.0) d. ✔ convert direct of_drm_get_bridge() users, part 4 (v7.1-v7.2) e. … convert bridge-only drm_of_find_panel_or_bridge() users
8. drm_of_find_panel_or_bridge, *_of_get_bridge
9. ✔ enforce drm_bridge_add before drm_bridge_attach (v6.19)
F. ✔ debugfs improvements
1. ✔ add top-level 'bridges' file (v6.16)
2. ✔ show refcount and list lingering bridges (v6.19)
2. … handle gracefully atomic updates during bridge removal
A. ✔ Add drm_bridge_enter/exit() to protect device resources (v7.0) B. … protect private_obj removal from list
C. ✔ Add drm_bridge_clear_and_put() (v7.1)
3. … DSI host-device driver interaction
4. ✔ removing the need for the "always-disconnected" connector
5. ✔ Migrate i.MX LCDIF driver to bridge-connector (v7.2)
6. ➜ DRM bridge hotplug
A. ➜ Bridge hotplug management in the DRM core
1. ➜ bridge-connector: attach encoder to the connector
B. Device tree description

[0] https://lore.kernel.org/lkml/[email protected]/#t

---
Changes in v2:
- patch 1: update kdoc
- patch 41: fix by rewriting it fully
- update cover letter
- Link to v1: https://patch.msgid.link/20260417-drm-bridge-connector-attach_encoder-v1-0-67b8b8fb872a@bootlin.com

To: Andrzej Hajda <[email protected]>
To: Neil Armstrong <[email protected]>
To: Robert Foss <[email protected]>
To: Laurent Pinchart <[email protected]>
To: Jonas Karlman <[email protected]>
To: Jernej Skrabec <[email protected]>
To: Maarten Lankhorst <[email protected]>
To: Maxime Ripard <[email protected]>
To: Thomas Zimmermann <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Sasha Finkelstein <[email protected]>
To: Janne Grunau <[email protected]>
To: Liu Ying <[email protected]>
To: Douglas Anderson <[email protected]>
To: Laurentiu Palcu <[email protected]>
To: Lucas Stach <[email protected]>
To: Frank Li <[email protected]>
To: Sascha Hauer <[email protected]>
To: Pengutronix Kernel Team <[email protected]>
To: Fabio Estevam <[email protected]>
To: Philipp Zabel <[email protected]>
To: Paul Cercueil <[email protected]>
To: Anitha Chrisanthus <[email protected]>
To: Chun-Kuang Hu <[email protected]>
To: Matthias Brugger <[email protected]>
To: AngeloGioacchino Del Regno <[email protected]>
To: Kevin Hilman <[email protected]>
To: Jerome Brunet <[email protected]>
To: Martin Blumenstingl <[email protected]>
To: Rob Clark <[email protected]>
To: Dmitry Baryshkov <[email protected]>
To: Abhinav Kumar <[email protected]>
To: Jessica Zhang <[email protected]>
To: Sean Paul <[email protected]>
To: Marijn Suijten <[email protected]>
To: Tomi Valkeinen <[email protected]>
To: Sandy Huang <[email protected]>
To: Heiko Stübner <[email protected]>
To: Andy Yan <[email protected]>
To: Thierry Reding <[email protected]>
To: Mikko Perttunen <[email protected]>
To: Jonathan Hunter <[email protected]>
To: Icenowy Zheng <[email protected]>
To: Jingoo Han <[email protected]>
To: Inki Dae <[email protected]>
To: Seung-Woo Kim <[email protected]>
To: Kyungmin Park <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Alim Akhtar <[email protected]>
To: Laurent Pinchart <[email protected]>
To: Tomi Valkeinen <[email protected]>
To: Kieran Bingham <[email protected]>
To: Geert Uytterhoeven <[email protected]>
To: Magnus Damm <[email protected]>
To: Biju Das <[email protected]>
To: Marek Vasut <[email protected]>
To: Stefan Agner <[email protected]>
To: Jyri Sarha <[email protected]>
To: Michal Simek <[email protected]>
Cc: Hui Pu <[email protected]>
Cc: Ian Ray <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Luca Ceresoli (41):
drm/display: bridge-connector: attach the encoder to the created connector
drm: adp: remove now-redundant call to drm_connector_attach_encoder()
drm/bridge: adv7511: remove now-redundant call to drm_connector_attach_encoder() drm/bridge: ite-it6263: remove now-redundant call to drm_connector_attach_encoder() drm/bridge: ti-sn65dsi86: remove now-redundant call to drm_connector_attach_encoder() drm/imx/dcss: remove now-redundant call to drm_connector_attach_encoder() drm/imx: ldb: remove now-redundant call to drm_connector_attach_encoder() drm/imx: parallel-display: remove now-redundant call to drm_connector_attach_encoder() drm/imx/lcdc: remove now-redundant call to drm_connector_attach_encoder() drm/ingenic: remove now-redundant call to drm_connector_attach_encoder() drm/kmb/dsi: remove now-redundant call to drm_connector_attach_encoder() drm/mediatek: mtk_dpi: remove now-redundant call to drm_connector_attach_encoder() drm/mediatek: mtk_dsi: remove now-redundant call to drm_connector_attach_encoder() drm/meson: encoder_cvbs: remove now-redundant call to drm_connector_attach_encoder() drm/meson: encoder_hdmi: remove now-redundant call to drm_connector_attach_encoder() drm/msm/dp: remove now-redundant call to drm_connector_attach_encoder() drm/msm/hdmi: remove now-redundant call to drm_connector_attach_encoder() drm/omapdrm: remove now-redundant call to drm_connector_attach_encoder() rm/rockchip: cdn-dp: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: rk3066_hdmi: remove now-redundant call to drm_connector_attach_encoder() drm/tegra: hdmi: remove now-redundant call to drm_connector_attach_encoder() drm/tegra: rgb: remove now-redundant call to drm_connector_attach_encoder() drm/tests: bridge: remove now-redundant call to drm_connector_attach_encoder()
drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder() drm/exynos: exynos_dp: remove now-redundant call to drm_connector_attach_encoder()
drm: rcar-du: encoder: remove now-redundant call to drm_connector_attach_encoder()
drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: analogix_dp: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: dw_dp: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: inno-hdmi: remove now-redundant call to drm_connector_attach_encoder() drm/msm/mdp4: remove now-redundant call to drm_connector_attach_encoder() drm/msm/dsi: remove now-redundant call to drm_connector_attach_encoder() drm/mxsfb/lcdif: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder() drm/tidss: remove now-redundant call to drm_connector_attach_encoder() drm/tilcdc: remove now-redundant call to drm_connector_attach_encoder()
drm: zynqmp_kms: remove now-redundant call to drm_connector_attach_encoder() drm/imx: remove now-redundant call to drm_connector_attach_encoder() drm/rockchip: rgb: remove now-redundant call to drm_connector_attach_encoder()
drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()

 drivers/gpu/drm/adp/adp_drv.c                     |  2 --
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c      |  2 --
 drivers/gpu/drm/bridge/ite-it6263.c               |  2 --
 drivers/gpu/drm/bridge/ti-sn65dsi86.c             |  2 --
 drivers/gpu/drm/display/drm_bridge_connector.c    | 11 +++++++++--
 drivers/gpu/drm/exynos/exynos_dp.c                |  2 +-
 drivers/gpu/drm/imx/dc/dc-kms.c                   |  8 +-------
 drivers/gpu/drm/imx/dcss/dcss-kms.c               |  2 --
 drivers/gpu/drm/imx/ipuv3/imx-ldb.c               |  2 --
 drivers/gpu/drm/imx/ipuv3/parallel-display.c      |  2 --
 drivers/gpu/drm/imx/lcdc/imx-lcdc.c               |  2 --
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c         |  2 --
 drivers/gpu/drm/kmb/kmb_dsi.c                     |  2 +-
 drivers/gpu/drm/mediatek/mtk_dpi.c                |  1 -
 drivers/gpu/drm/mediatek/mtk_dsi.c                |  1 -
 drivers/gpu/drm/meson/meson_encoder_cvbs.c        |  2 --
 drivers/gpu/drm/meson/meson_encoder_hdmi.c        |  2 --
 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c          |  7 -------
 drivers/gpu/drm/msm/dp/dp_drm.c                   |  2 --
 drivers/gpu/drm/msm/dsi/dsi_manager.c             |  4 ----
 drivers/gpu/drm/msm/hdmi/hdmi.c                   |  2 --
 drivers/gpu/drm/mxsfb/lcdif_drv.c                 |  6 ------
 drivers/gpu/drm/omapdrm/omap_drv.c                |  2 --
 drivers/gpu/drm/renesas/rcar-du/rcar_du_encoder.c |  2 +-
 drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c  |  2 +-
 drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 16 +++++++---------
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c   |  2 +-
 drivers/gpu/drm/rockchip/cdn-dp-core.c            |  2 --
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c         |  2 +-
 drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |  2 +-
 drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c     |  2 +-
 drivers/gpu/drm/rockchip/rk3066_hdmi.c            |  2 --
 drivers/gpu/drm/rockchip/rockchip_lvds.c          |  6 ------
 drivers/gpu/drm/rockchip/rockchip_rgb.c           |  9 ---------
 drivers/gpu/drm/tegra/hdmi.c                      |  2 --
 drivers/gpu/drm/tegra/rgb.c                       |  2 --
 drivers/gpu/drm/tests/drm_bridge_test.c           |  2 --
 drivers/gpu/drm/tidss/tidss_encoder.c             |  6 ------
 drivers/gpu/drm/tilcdc/tilcdc_encoder.c           |  6 ------
 drivers/gpu/drm/verisilicon/vs_bridge.c           |  1 -
 drivers/gpu/drm/xlnx/zynqmp_kms.c                 |  6 ------
 41 files changed, 25 insertions(+), 117 deletions(-)

---
base-commit: 77fec37c895fcbdefbcec97cefd6d1f5cfdf1e3a
change-id: 20260416-drm-bridge-connector-attach_encoder-c651ac05705f

Best regards,

Signature · 1 line
Luca Ceresoli <[email protected]>
author reviewer
#1 lore raw

PATCH v2 1/41 drm/display: bridge-connector: attach the encoder to the created connector

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

Update documentation accordingly, rewording a bit the whole paragraph which would otherwise become poorly readable due to the growing list of actions.

---

Changes in v2:
- mention new behaviour in kdoc as agreen with Dmitry

---
 drivers/gpu/drm/display/drm_bridge_connector.c | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
drivers/gpu/drm/display/drm_bridge_connector.c +9 -2
index 39cc18f78eda..d85ceb80c137 100644
@@ -773,8 +773,11 @@ static void drm_bridge_connector_put_bridges(struct drm_device *dev, void *data)
  * @drm: the DRM device
  * @encoder: the encoder where the bridge chain starts
  *
- * Allocate, initialise and register a &drm_bridge_connector with the @drm
- * device. The connector is associated with a chain of bridges that starts at
+ * Create a new &drm_bridge_connector for the @drm device. The connector is
+ * allocated, initialised, registered with the @drm device and attached to
+ * @encoder.
+ *
+ * The connector is associated with a chain of bridges that starts at
  * the @encoder. All bridges in the chain shall report bridge operation flags
  * (&drm_bridge->ops) and bridge output type (&drm_bridge->type), and none of
  * them may create a DRM connector directly.
@@ -1055,6 +1058,10 @@ struct drm_connector *drm_bridge_connector_init(struct drm_device *drm,
 	    IS_ENABLED(CONFIG_DRM_DISPLAY_HDCP_HELPER))
 		drm_connector_attach_content_protection_property(connector, true);
 
+	ret = drm_connector_attach_encoder(connector, encoder);
+	if (ret)
+		return ERR_PTR(ret);
+
 	return connector;
 }
 EXPORT_SYMBOL_GPL(drm_bridge_connector_init);
Signature · 1 line
2.53.0
author reviewer
#2 lore raw

PATCH v2 2/41 drm: adp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/adp/adp_drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/adp/adp_drv.c +0 -2
index 4554cf75565e..0a11820d5b8a 100644
@@ -444,8 +444,6 @@ static int adp_setup_mode_config(struct adp_drv_private *adp)
 	if (IS_ERR(adp->connector))
 		return PTR_ERR(adp->connector);
 
-	drm_connector_attach_encoder(adp->connector, adp->encoder);
-
 	ret = drm_vblank_init(drm, drm->mode_config.num_crtc);
 	if (ret < 0) {
 		drm_err(drm, "failed to initialize vblank");
Signature · 1 line
2.53.0
author reviewer
#3 lore raw

PATCH v2 3/41 drm/bridge: adv7511: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/bridge/adv7511/adv7511_drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/bridge/adv7511/adv7511_drv.c +0 -2
index 6bd76c1fb007..f318080f1139 100644
@@ -768,8 +768,6 @@ static int adv7511_connector_init(struct adv7511 *adv)
 		return PTR_ERR(connector);
 	}
 
-	drm_connector_attach_encoder(connector, bridge->encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#4 lore raw

PATCH v2 4/41 drm/bridge: ite-it6263: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/bridge/ite-it6263.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/bridge/ite-it6263.c +0 -2
index 4f3ebb7af4d4..2ea49245e700 100644
@@ -697,8 +697,6 @@ static int it6263_bridge_attach(struct drm_bridge *bridge,
 		return ret;
 	}
 
-	drm_connector_attach_encoder(connector, encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
maintainer Reviewed-by on v2 4/41
#5 lore raw

Re: [PATCH v2 04/41] drm/bridge: ite-it6263: remove now-redundant call to drm_connector_attach_encoder()

Quoted 7 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/bridge/ite-it6263.c | 2 --
 1 file changed, 2 deletions(-)
Signature · 2 lines
Regards,
Liu Ying
author reviewer
#6 lore raw

PATCH v2 5/41 drm/bridge: ti-sn65dsi86: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/bridge/ti-sn65dsi86.c +0 -2
index 98d64ad791d0..1336ffab103f 100644
@@ -776,8 +776,6 @@ static int ti_sn_bridge_attach(struct drm_bridge *bridge,
 		goto err_initted_aux;
 	}
 
-	drm_connector_attach_encoder(pdata->connector, pdata->bridge.encoder);
-
 	return 0;
 
 err_initted_aux:
Signature · 1 line
2.53.0
author reviewer
#7 lore raw

PATCH v2 6/41 drm/imx/dcss: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/dcss/dcss-kms.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/imx/dcss/dcss-kms.c +0 -2
index 3633e8f3aff6..50bd7f36d36d 100644
@@ -103,8 +103,6 @@ static int dcss_kms_bridge_connector_init(struct dcss_kms_dev *kms)
 		return PTR_ERR(kms->connector);
 	}
 
-	drm_connector_attach_encoder(kms->connector, encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#9 lore raw

PATCH v2 7/41 drm/imx: ldb: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/ipuv3/imx-ldb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/imx/ipuv3/imx-ldb.c +0 -2
index 730caf883e83..63d6a1e7c1bd 100644
@@ -407,8 +407,6 @@ static int imx_ldb_register(struct drm_device *drm,
 	if (IS_ERR(connector))
 		return PTR_ERR(connector);
 
-	drm_connector_attach_encoder(connector, encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#10 lore raw

PATCH v2 8/41 drm/imx: parallel-display: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/ipuv3/parallel-display.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/imx/ipuv3/parallel-display.c +0 -2
index 6c505becb31d..0f06db95f00f 100644
@@ -216,8 +216,6 @@ static int imx_pd_bind(struct device *dev, struct device *master, void *data)
 	if (IS_ERR(connector))
 		return PTR_ERR(connector);
 
-	drm_connector_attach_encoder(connector, encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#11 lore raw

PATCH v2 9/41 drm/imx/lcdc: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/lcdc/imx-lcdc.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/imx/lcdc/imx-lcdc.c +0 -2
index e200b40f30fe..f52832b43aca 100644
@@ -448,8 +448,6 @@ static int imx_lcdc_probe(struct platform_device *pdev)
 	if (IS_ERR(lcdc->connector))
 		return dev_err_probe(drm->dev, PTR_ERR(lcdc->connector), "Cannot init bridge connector\n");
 
-	drm_connector_attach_encoder(lcdc->connector, &lcdc->pipe.encoder);
-
 	/*
 	 * The LCDC controller does not have an enable bit. The
 	 * controller starts directly when the clocks are enabled.
Signature · 1 line
2.53.0
author reviewer
#12 lore raw

PATCH v2 10/41 drm/ingenic: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +0 -2
index 4068114adf8c..70088db34f69 100644
@@ -1330,8 +1330,6 @@ static int ingenic_drm_bind(struct device *dev, bool has_components)
 			ret = PTR_ERR(connector);
 			goto err_drvdata;
 		}
-
-		drm_connector_attach_encoder(connector, encoder);
 	}
 
 	drm_for_each_encoder(encoder, drm) {
Signature · 1 line
2.53.0
maintainer Acked-by on v2 10/41
#13 lore raw

Re: [PATCH v2 10/41] drm/ingenic: remove now-redundant call to drm_connector_attach_encoder()

Hi Luca,

Le jeudi 23 avril 2026 à 11:17 +0200, Luca Ceresoli a écrit :

Quoted 4 lines

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

Cheers,
-Paul

Quoted 19 lines

---
 drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 --

 1 file changed, 2 deletions(-)
drivers/gpu/drm/ingenic/ingenic-drm-drv.c +0 -2
index 4068114adf8c..70088db34f69 100644
@@ -1330,8 +1330,6 @@ static int ingenic_drm_bind(struct device *dev,
 bool has_components)
  			ret = PTR_ERR(connector);
  			goto err_drvdata;
  		}
-
-		drm_connector_attach_encoder(connector, encoder);
  	}


  drm_for_each_encoder(encoder, drm) {

author reviewer
#14 lore raw

PATCH v2 11/41 drm/kmb/dsi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/kmb/kmb_dsi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/kmb/kmb_dsi.c +1 -1
index febca939bd01..df84b5a79a6c 100644
@@ -1457,7 +1457,7 @@ int kmb_dsi_encoder_init(struct drm_device *dev, struct kmb_dsi *kmb_dsi)
 		drm_encoder_cleanup(encoder);
 		return PTR_ERR(connector);
 	}
-	drm_connector_attach_encoder(connector, encoder);
+
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#15 lore raw

PATCH v2 12/41 drm/mediatek: mtk_dpi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/mediatek/mtk_dpi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/mediatek/mtk_dpi.c +0 -1
index 53360b5d12ba..cc6d74ce8b5e 100644
@@ -1049,7 +1049,6 @@ static int mtk_dpi_bind(struct device *dev, struct device *master, void *data)
 		ret = PTR_ERR(dpi->connector);
 		goto err_cleanup;
 	}
-	drm_connector_attach_encoder(dpi->connector, &dpi->encoder);
 
 	return 0;
 
Signature · 1 line
2.53.0
author reviewer
#16 lore raw

PATCH v2 13/41 drm/mediatek: mtk_dsi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/mediatek/mtk_dsi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/mediatek/mtk_dsi.c +0 -1
index 5aa71fcdcfab..8be32cde2924 100644
@@ -936,7 +936,6 @@ static int mtk_dsi_encoder_init(struct drm_device *drm, struct mtk_dsi *dsi)
 		ret = PTR_ERR(dsi->connector);
 		goto err_cleanup_encoder;
 	}
-	drm_connector_attach_encoder(dsi->connector, &dsi->encoder);
 
 	return 0;
 
Signature · 1 line
2.53.0
author reviewer
#17 lore raw

PATCH v2 14/41 drm/meson: encoder_cvbs: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/meson/meson_encoder_cvbs.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/meson/meson_encoder_cvbs.c +0 -2
index 41071d6e05e5..41ba6d2139ee 100644
@@ -279,8 +279,6 @@ int meson_encoder_cvbs_probe(struct meson_drm *priv)
 		return dev_err_probe(priv->dev, PTR_ERR(connector),
 				     "Unable to create CVBS bridge connector\n");
 
-	drm_connector_attach_encoder(connector, &meson_encoder_cvbs->encoder);
-
 	priv->encoders[MESON_ENC_CVBS] = meson_encoder_cvbs;
 
 	return 0;
Signature · 1 line
2.53.0
author reviewer
#18 lore raw

PATCH v2 15/41 drm/meson: encoder_hdmi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/meson/meson_encoder_hdmi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/meson/meson_encoder_hdmi.c +0 -2
index 1abb0572bb5f..8e00ae6edbb1 100644
@@ -433,8 +433,6 @@ int meson_encoder_hdmi_probe(struct meson_drm *priv)
 				    "Unable to create HDMI bridge connector\n");
 		goto err_put_node;
 	}
-	drm_connector_attach_encoder(meson_encoder_hdmi->connector,
-				     &meson_encoder_hdmi->encoder);
 
 	/*
 	 * We should have now in place:
Signature · 1 line
2.53.0
author reviewer
#19 lore raw

PATCH v2 16/41 drm/msm/dp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/msm/dp/dp_drm.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/msm/dp/dp_drm.c +0 -2
index fd6443d2b6ce..333fce3d44ed 100644
@@ -376,7 +376,5 @@ struct drm_connector *msm_dp_drm_connector_init(struct msm_dp *msm_dp_display,
 	if (!msm_dp_display->is_edp)
 		drm_connector_attach_dp_subconnector_property(connector);
 
-	drm_connector_attach_encoder(connector, encoder);
-
 	return connector;
 }
Signature · 1 line
2.53.0
author reviewer
#20 lore raw

PATCH v2 17/41 drm/msm/hdmi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/msm/hdmi/hdmi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/msm/hdmi/hdmi.c +0 -2
index 852abb2466f0..d9491aac1a89 100644
@@ -190,8 +190,6 @@ int msm_hdmi_modeset_init(struct hdmi *hdmi,
 		goto fail;
 	}
 
-	drm_connector_attach_encoder(hdmi->connector, hdmi->encoder);
-
 	ret = devm_request_irq(dev->dev, hdmi->irq,
 			msm_hdmi_irq, IRQF_TRIGGER_HIGH,
 			"hdmi_isr", hdmi);
Signature · 1 line
2.53.0
author reviewer
#21 lore raw

PATCH v2 18/41 drm/omapdrm: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/omapdrm/omap_drv.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/omapdrm/omap_drv.c +0 -2
index ae678696fbac..31bf2618046b 100644
@@ -507,8 +507,6 @@ static int omap_modeset_init(struct drm_device *dev)
 			return PTR_ERR(pipe->connector);
 		}
 
-		drm_connector_attach_encoder(pipe->connector, encoder);
-
 		crtc = omap_crtc_init(dev, pipe, priv->planes[i]);
 		if (IS_ERR(crtc))
 			return PTR_ERR(crtc);
Signature · 1 line
2.53.0
author reviewer
#22 lore raw

PATCH v2 19/41 rm/rockchip: cdn-dp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/rockchip/cdn-dp-core.c +0 -2
index 177e30445ee8..f39450e12716 100644
@@ -1024,8 +1024,6 @@ static int cdn_dp_bind(struct device *dev, struct device *master, void *data)
 		return ret;
 	}
 
-	drm_connector_attach_encoder(connector, encoder);
-
 	for (i = 0; i < dp->ports; i++) {
 		port = dp->port[i];
 
Signature · 1 line
2.53.0
#23 lore raw

Re: [PATCH v2 19/41] rm/rockchip: cdn-dp: remove now-redundant call to drm_connector_attach_encoder()

Quoted 2 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

Nit: there is a tiny typo in the subject, but it can be fixed when applying.

Quoted 5 lines
---
 drivers/gpu/drm/rockchip/cdn-dp-core.c | 2 --
 1 file changed, 2 deletions(-)
Signature · 2 lines
With best wishes
Dmitry
author reviewer
#24 lore raw

PATCH v2 20/41 drm/rockchip: rk3066_hdmi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rk3066_hdmi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/rockchip/rk3066_hdmi.c +0 -2
index 9066ee2d1dff..b64cbed26312 100644
@@ -731,8 +731,6 @@ rk3066_hdmi_register(struct drm_device *drm, struct rk3066_hdmi *hdmi)
 		return ret;
 	}
 
-	drm_connector_attach_encoder(hdmi->connector, encoder);
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#25 lore raw

PATCH v2 21/41 drm/tegra: hdmi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/tegra/hdmi.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/tegra/hdmi.c +0 -2
index 0adcd4244a42..10f02f35c866 100644
@@ -1576,8 +1576,6 @@ static int tegra_hdmi_init(struct host1x_client *client)
 				connector);
 			return PTR_ERR(connector);
 		}
-
-		drm_connector_attach_encoder(connector, &hdmi->output.encoder);
 	} else {
 		drm_connector_init_with_ddc(drm, &hdmi->output.connector,
 					    &tegra_hdmi_connector_funcs,
Signature · 1 line
2.53.0
author reviewer
#26 lore raw

PATCH v2 22/41 drm/tegra: rgb: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/tegra/rgb.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/tegra/rgb.c +0 -2
index ff5a749710db..e67fbb2362e6 100644
@@ -355,8 +355,6 @@ int tegra_dc_rgb_init(struct drm_device *drm, struct tegra_dc *dc)
 				connector);
 			return PTR_ERR(connector);
 		}
-
-		drm_connector_attach_encoder(connector, &output->encoder);
 	}
 
 	err = tegra_output_init(drm, output);
Signature · 1 line
2.53.0
author reviewer
#27 lore raw

PATCH v2 23/41 drm/tests: bridge: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/tests/drm_bridge_test.c | 2 --
 1 file changed, 2 deletions(-)
drivers/gpu/drm/tests/drm_bridge_test.c +0 -2
index 887020141c7f..dbba06a486f0 100644
@@ -173,8 +173,6 @@ drm_test_bridge_init(struct kunit *test, const struct drm_bridge_funcs *funcs)
 	if (IS_ERR(priv->connector))
 		return ERR_CAST(priv->connector);
 
-	drm_connector_attach_encoder(priv->connector, enc);
-
 	drm_mode_config_reset(drm);
 
 	return priv;
Signature · 1 line
2.53.0
author reviewer
#28 lore raw

PATCH v2 24/41 drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/verisilicon/vs_bridge.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/verisilicon/vs_bridge.c +0 -1
index 2a0ad00a94d6..83c91d5ce397 100644
@@ -365,7 +365,6 @@ struct vs_bridge *vs_bridge_init(struct drm_device *drm_dev,
 		ret = PTR_ERR(bridge->conn);
 		return ERR_PTR(ret);
 	}
-	drm_connector_attach_encoder(bridge->conn, bridge->enc);
 
 	return bridge;
 }
Signature · 1 line
2.53.0
maintainer Acked-by on v2 24/41
#29 lore raw

Re: [PATCH v2 24/41] drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder()

Quoted 4 lines · 在 2026-04-23四的 11:17 +0200,Luca Ceresoli写道:

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

Quoted 18 lines

---
 drivers/gpu/drm/verisilicon/vs_bridge.c | 1 -

 1 file changed, 1 deletion(-)
drivers/gpu/drm/verisilicon/vs_bridge.c +0 -1
index 2a0ad00a94d6..83c91d5ce397 100644
@@ -365,7 +365,6 @@ struct vs_bridge *vs_bridge_init(struct
 drm_device *drm_dev,
  		ret = PTR_ERR(bridge->conn);
  		return ERR_PTR(ret);
  	}
-	drm_connector_attach_encoder(bridge->conn, bridge->enc);


  return bridge;
 }

maintainer Acked-by on v2 24/41
#30 lore raw

Re: [PATCH v2 24/41] drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli
Quoted 14 lines · 在 2026-04-23四的 11:17 +0200,Luca Ceresoli写道:

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/verisilicon/vs_bridge.c | 1 -

 1 file changed, 1 deletion(-)
drivers/gpu/drm/verisilicon/vs_bridge.c +0 -0
index 2a0ad00a94d6..83c91d5ce397 100644

drivers/gpu/drm/verisilicon/vs_bridge.c struct vs_bridge *vs_bridge_init(struct · line 369

Quoted 5 lines
drivers/gpu/drm/verisilicon/vs_bridge.c +0 -1
@@ -365,7 +365,6 @@ struct vs_bridge *vs_bridge_init(struct
 drm_device *drm_dev,
  		ret = PTR_ERR(bridge->conn);
  		return ERR_PTR(ret);
  	}
-	drm_connector_attach_encoder(bridge->conn, bridge->enc);

Checked the source of this function and it looks idempotent.

Quoted 3 lines


  return bridge;
 }

author reviewer
#31 lore raw

PATCH v2 25/41 drm/exynos: exynos_dp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/exynos/exynos_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/exynos/exynos_dp.c +1 -1
index 6884ea6d04eb..b80540328150 100644
@@ -118,7 +118,7 @@ static int exynos_dp_bind(struct device *dev, struct device *master, void *data)
 		return ret;
 	}
 
-	return drm_connector_attach_encoder(connector, dp->plat_data.encoder);
+	return 0;
 }
 
 static void exynos_dp_unbind(struct device *dev, struct device *master,
Signature · 1 line
2.53.0
author reviewer
#32 lore raw

PATCH v2 26/41 drm: rcar-du: encoder: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/renesas/rcar-du/rcar_du_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/renesas/rcar-du/rcar_du_encoder.c +1 -1
index 32ea09d65d76..db2088529b48 100644
@@ -142,7 +142,7 @@ int rcar_du_encoder_init(struct rcar_du_device *rcdu,
 		return PTR_ERR(connector);
 	}
 
-	return drm_connector_attach_encoder(connector, &renc->base);
+	return 0;
 }
 
 void rcar_du_encoder_cleanup(struct rcar_du_device *rcdu)
Signature · 1 line
2.53.0
author reviewer
#33 lore raw

PATCH v2 27/41 drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c +1 -1
index d53068733c66..0e567b57a408 100644
@@ -129,5 +129,5 @@ int rzg2l_du_encoder_init(struct rzg2l_du_device  *rcdu,
 		return PTR_ERR(connector);
 	}
 
-	return drm_connector_attach_encoder(connector, &renc->base);
+	return 0;
 }
Signature · 1 line
2.53.0
maintainer Tested-by on v2 27/41
#34 lore raw

RE: [PATCH v2 27/41] drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder()

Hi Luca Ceresoli,

Quoted 9 lines

-----Original Message-----
From: Luca Ceresoli <[email protected]>
Sent: 23 April 2026 10:17
Subject: [PATCH v2 27/41] drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder()

drm_connector_attach_encoder() is now called by drm_bridge_connector_init().

Tested on RZ/G2L SMARC EVK.

Cheers,
Biju

Quoted 19 lines
---
 drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/renesas/rz- renamed from drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c +0 -0

du/rzg2l_du_encoder.c
index d53068733c66..0e567b57a408 100644

drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c +1 -2
@@ -129,5 +129,5 @@ int rzg2l_du_encoder_init(struct rzg2l_du_device  *rcdu,
 		return PTR_ERR(connector);
 	}
 
-	return drm_connector_attach_encoder(connector, &renc->base);
+	return 0;
 }
 
--

2.53.0

author reviewer
#35 lore raw

PATCH v2 28/41 drm/rockchip: analogix_dp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/analogix_dp-rockchip.c +1 -1
index eea230f0227a..41ff44eaf44d 100644
@@ -395,7 +395,7 @@ static int rockchip_dp_bind(struct device *dev, struct device *master,
 		goto err_cleanup_encoder;
 	}
 
-	return drm_connector_attach_encoder(connector, dp->plat_data.encoder);
+	return 0;
 err_cleanup_encoder:
 	dp->encoder.encoder.funcs->destroy(&dp->encoder.encoder);
 	return ret;
Signature · 1 line
2.53.0
author reviewer
#36 lore raw

PATCH v2 29/41 drm/rockchip: dw_dp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/dw_dp-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/dw_dp-rockchip.c +1 -1
index 22c0911f1896..a9a8bf43aa1d 100644
@@ -111,7 +111,7 @@ static int dw_dp_rockchip_bind(struct device *dev, struct device *master, void *
 		return dev_err_probe(dev, PTR_ERR(connector),
 				     "Failed to init bridge connector");
 
-	return drm_connector_attach_encoder(connector, encoder);
+	return 0;
 }
 
 static const struct component_ops dw_dp_rockchip_component_ops = {
Signature · 1 line
2.53.0
author reviewer
#37 lore raw

PATCH v2 30/41 drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c +1 -1
index c78db7f8ab6c..f35484715c2d 100644
@@ -603,7 +603,7 @@ static int dw_hdmi_qp_rockchip_bind(struct device *dev, struct device *master,
 		return dev_err_probe(hdmi->dev, PTR_ERR(connector),
 				     "Failed to init bridge connector\n");
 
-	return drm_connector_attach_encoder(connector, encoder);
+	return 0;
 }
 
 static void dw_hdmi_qp_rockchip_unbind(struct device *dev,
Signature · 1 line
2.53.0
author reviewer
#38 lore raw

PATCH v2 31/41 drm/rockchip: inno-hdmi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c +1 -1
index 28e6fb09aae7..45a6dae4de31 100644
@@ -137,7 +137,7 @@ static int inno_hdmi_rockchip_bind(struct device *dev, struct device *master, vo
 		return ret;
 	}
 
-	return drm_connector_attach_encoder(connector, encoder);
+	return 0;
 }
 
 static const struct component_ops inno_hdmi_rockchip_ops = {
Signature · 1 line
2.53.0
author reviewer
#39 lore raw

PATCH v2 32/41 drm/msm/mdp4: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c | 7 -------
 1 file changed, 7 deletions(-)
drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c +0 -7
index 809ca191e9de..7726edb0d4ed 100644
@@ -232,13 +232,6 @@ static int mdp4_modeset_init_intf(struct mdp4_kms *mdp4_kms,
 			return PTR_ERR(connector);
 		}
 
-		ret = drm_connector_attach_encoder(connector, encoder);
-		if (ret) {
-			DRM_DEV_ERROR(dev->dev, "failed to attach LVDS connector: %d\n", ret);
-
-			return ret;
-		}
-
 		break;
 	case DRM_MODE_ENCODER_TMDS:
 		encoder = mdp4_dtv_encoder_init(dev);
Signature · 1 line
2.53.0
author reviewer
#40 lore raw

PATCH v2 33/41 drm/msm/dsi: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/msm/dsi/dsi_manager.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/gpu/drm/msm/dsi/dsi_manager.c +0 -4
index ca400924d4ee..46faeaae9d94 100644
@@ -485,10 +485,6 @@ int msm_dsi_manager_connector_init(struct msm_dsi *msm_dsi,
 		return PTR_ERR(connector);
 	}
 
-	ret = drm_connector_attach_encoder(connector, encoder);
-	if (ret < 0)
-		return ret;
-
 	return 0;
 }
 
Signature · 1 line
2.53.0
author reviewer
#41 lore raw

PATCH v2 34/41 drm/mxsfb/lcdif: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/mxsfb/lcdif_drv.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/mxsfb/lcdif_drv.c +0 -6
index 7f07ae24e0dc..f5bb59cd5028 100644
@@ -99,12 +99,6 @@ static int lcdif_attach_bridge(struct lcdif_drm_private *lcdif)
 			return dev_err_probe(dev, PTR_ERR(connector),
 					     "Failed to init bridge_connector for endpoint%u\n",
 					     of_ep.id);
-
-		ret = drm_connector_attach_encoder(connector, encoder);
-		if (ret)
-			return dev_err_probe(dev, ret,
-					     "Failed to attach connector for endpoint%u\n",
-					     of_ep.id);
 	}
 
 	return 0;
Signature · 1 line
2.53.0
maintainer Reviewed-by on v2 34/41
#42 lore raw

Re: [PATCH v2 34/41] drm/mxsfb/lcdif: remove now-redundant call to drm_connector_attach_encoder()

Quoted 7 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/mxsfb/lcdif_drv.c | 6 ------
 1 file changed, 6 deletions(-)
Signature · 2 lines
Regards,
Liu Ying
author reviewer
#43 lore raw

PATCH v2 35/41 drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rockchip_lvds.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/rockchip/rockchip_lvds.c +0 -6
index 75f898a10cbc..7a0c4fa29f2f 100644
@@ -628,12 +628,6 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master,
 			ret = PTR_ERR(connector);
 			goto err_free_bridge;
 		}
-
-		ret = drm_connector_attach_encoder(connector, encoder);
-		if (ret < 0) {
-			drm_err(drm_dev, "failed to attach encoder: %d\n", ret);
-			goto err_free_bridge;
-		}
 	}
 
 	pm_runtime_enable(dev);
Signature · 1 line
2.53.0
#44 lore raw

Re: [PATCH 35/41] drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()

Quoted 8 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rockchip_lvds.c | 6 ------
 1 file changed, 6 deletions(-)

stray duplicate

Signature · 2 lines
With best wishes
Dmitry
author reviewer
#45 lore raw

Re: [PATCH 35/41] drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()

Hi Dmitry, Geert,

Quoted 11 lines · Dmitry Baryshkov
Quoted 8 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rockchip_lvds.c | 6 ------
 1 file changed, 6 deletions(-)

stray duplicate

Due to the long Cc list, when sending the series with b4 I hit the mail provider limit, so patches after 34 were not sent.

I then sent them manually using the good old git format-patch/send-email, but in the process I missed the v2 (heh, b4 is great at automating that!). So patch 35 got sent without v2, and then I resent it and the following ones with the v2 marker.

Sorry about the noise!

I think with Dmitry's all-series R-by this whole series can be applied at once (I'll wait ~1 week before applying, in case of more comments). This will avoid more iterations spamming lots of people.

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

author reviewer
#46 lore raw

PATCH v2 35/41 drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rockchip_lvds.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/rockchip/rockchip_lvds.c +0 -6
index 75f898a10cbc..7a0c4fa29f2f 100644
@@ -628,12 +628,6 @@ static int rockchip_lvds_bind(struct device *dev, struct device *master,
 			ret = PTR_ERR(connector);
 			goto err_free_bridge;
 		}
-
-		ret = drm_connector_attach_encoder(connector, encoder);
-		if (ret < 0) {
-			drm_err(drm_dev, "failed to attach encoder: %d\n", ret);
-			goto err_free_bridge;
-		}
 	}
 
 	pm_runtime_enable(dev);
Signature · 1 line
2.53.0
author reviewer
#47 lore raw

PATCH v2 36/41 drm/tidss: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/tidss/tidss_encoder.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/tidss/tidss_encoder.c +0 -6
index db467bbcdb77..34db8d2a3792 100644
@@ -123,12 +123,6 @@ int tidss_encoder_create(struct tidss_device *tidss,
 		return PTR_ERR(connector);
 	}
 
-	ret = drm_connector_attach_encoder(connector, enc);
-	if (ret) {
-		dev_err(tidss->dev, "attaching encoder to connector failed\n");
-		return ret;
-	}
-
 	t_enc->connector = connector;
 
 	dev_dbg(tidss->dev, "Encoder create done\n");
Signature · 1 line
2.53.0
author reviewer
#48 lore raw

PATCH v2 37/41 drm/tilcdc: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/tilcdc/tilcdc_encoder.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/tilcdc/tilcdc_encoder.c +0 -6
index 680a2ac6ab59..ac4b5beb2dd5 100644
@@ -35,12 +35,6 @@ int tilcdc_attach_bridge(struct drm_device *ddev, struct drm_bridge *bridge)
 		return PTR_ERR(connector);
 	}
 
-	ret = drm_connector_attach_encoder(connector, &priv->encoder->base);
-	if (ret) {
-		drm_err(ddev, "attaching encoder to connector failed\n");
-		return ret;
-	}
-
 	priv->connector = connector;
 	return 0;
 }
Signature · 1 line
2.53.0
author reviewer
#49 lore raw

PATCH v2 38/41 drm: zynqmp_kms: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/xlnx/zynqmp_kms.c | 6 ------
 1 file changed, 6 deletions(-)
drivers/gpu/drm/xlnx/zynqmp_kms.c +0 -6
index 02f3a7d78cf8..a341ca492253 100644
@@ -453,12 +453,6 @@ static int zynqmp_dpsub_kms_init(struct zynqmp_dpsub *dpsub)
 		goto err_encoder;
 	}
 
-	ret = drm_connector_attach_encoder(connector, encoder);
-	if (ret < 0) {
-		dev_err(dpsub->dev, "failed to attach connector to encoder\n");
-		goto err_encoder;
-	}
-
 	return 0;
 
 err_encoder:
Signature · 1 line
2.53.0
author reviewer
#50 lore raw

PATCH v2 39/41 drm/imx: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/dc/dc-kms.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/gpu/drm/imx/dc/dc-kms.c +1 -7
index 2b18aa37a4a8..0f8cfaf4c4d1 100644
@@ -81,13 +81,7 @@ static int dc_kms_init_encoder_per_crtc(struct dc_drm_device *dc_drm,
 		return ret;
 	}
 
-	ret = drm_connector_attach_encoder(connector, encoder);
-	if (ret)
-		dev_err(dev,
-			"failed to attach encoder to connector for CRTC%u: %d\n",
-			crtc->index, ret);
-
-	return ret;
+	return 0;
 }
 
 int dc_kms_init(struct dc_drm_device *dc_drm)
Signature · 1 line
2.53.0
maintainer Reviewed-by on v2 39/41
#51 lore raw

Re: [PATCH v2 39/41] drm/imx: remove now-redundant call to drm_connector_attach_encoder()

Quoted 7 lines · Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/imx/dc/dc-kms.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

Subject prefix should be 'drm/imx: dc:'.

With this fixed:

Signature · 2 lines
Regards,
Liu Ying
author reviewer
#52 lore raw

PATCH v2 40/41 drm/rockchip: rgb: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

drm_connector_attach_encoder() is now called by
drm_bridge_connector_init().

---
 drivers/gpu/drm/rockchip/rockchip_rgb.c | 9 ---------
 1 file changed, 9 deletions(-)
drivers/gpu/drm/rockchip/rockchip_rgb.c +0 -9
index 5c0c6e2cc28d..add3123e5ce7 100644
@@ -162,17 +162,8 @@ struct rockchip_rgb *rockchip_rgb_init(struct device *dev,
 
 	rgb->encoder.crtc_endpoint_id = endpoint_id;
 
-	ret = drm_connector_attach_encoder(connector, encoder);
-	if (ret < 0) {
-		DRM_DEV_ERROR(drm_dev->dev,
-			      "failed to attach encoder: %d\n", ret);
-		goto err_free_connector;
-	}
-
 	return rgb;
 
-err_free_connector:
-	drm_connector_cleanup(connector);
 err_free_encoder:
 	drm_encoder_cleanup(encoder);
 	return ERR_PTR(ret);
Signature · 1 line
2.53.0
author reviewer
#53 lore raw

PATCH v2 41/41 drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

shmob_drm_connector_create() can init the connector in two ways, based on the 'if (sdev->pdata)':

1. manually in shmob_drm_connector_create(), or
2. delegating to drm_bridge_connector_init()

Whichever branch is taken, drm_connector_attach_encoder() is called immediately after to attach the connector to the encoder.

Now drm_bridge_connector_init() calls drm_connector_attach_encoder() on the connector so it is not needed anymore in case 2 and should be removed, but it is still needed in case 1. Move drm_connector_attach_encoder() from the common path to inside shmob_drm_connector_create() in order to get back to a single drm_connector_attach_encoder() in both cases.

---

Changes in v2:
- rewrote completely, fixing potential ERR_PTR deref and ending up with a cleaner patch
- also wrote more extensive commit message

---
 .../gpu/drm/renesas/shmobile/shmob_drm_crtc.c    | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c +7 -9
index 5f460b38596c..815c770147ed 100644
@@ -583,6 +583,13 @@ shmob_drm_connector_init(struct shmob_drm_device *sdev,
 
 	drm_connector_helper_add(connector, &connector_helper_funcs);
 
+	ret = drm_connector_attach_encoder(connector, encoder);
+	if (ret < 0) {
+		drm_connector_cleanup(connector);
+		kfree(scon);
+		return ERR_PTR(ret);
+	}
+
 	return connector;
 }
 
@@ -594,7 +601,6 @@ int shmob_drm_connector_create(struct shmob_drm_device *sdev,
 			       struct drm_encoder *encoder)
 {
 	struct drm_connector *connector;
-	int ret;
 
 	if (sdev->pdata)
 		connector = shmob_drm_connector_init(sdev, encoder);
@@ -606,17 +612,9 @@ int shmob_drm_connector_create(struct shmob_drm_device *sdev,
 		return PTR_ERR(connector);
 	}
 
-	ret = drm_connector_attach_encoder(connector, encoder);
-	if (ret < 0)
-		goto error;
-
 	connector->dpms = DRM_MODE_DPMS_OFF;
 
 	sdev->connector = connector;
 
 	return 0;
-
-error:
-	drm_connector_cleanup(connector);
-	return ret;
 }
Signature · 1 line
2.53.0
#54 lore raw

Re: [PATCH v2 41/41] drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()

Quoted 19 lines · Luca Ceresoli

shmob_drm_connector_create() can init the connector in two ways, based on the 'if (sdev->pdata)':

1. manually in shmob_drm_connector_create(), or
2. delegating to drm_bridge_connector_init()

Whichever branch is taken, drm_connector_attach_encoder() is called immediately after to attach the connector to the encoder.

Now drm_bridge_connector_init() calls drm_connector_attach_encoder() on the connector so it is not needed anymore in case 2 and should be removed, but it is still needed in case 1. Move drm_connector_attach_encoder() from the common path to inside shmob_drm_connector_create() in order to get back to a single drm_connector_attach_encoder() in both cases.

---

Quoted 7 lines

Changes in v2:
- rewrote completely, fixing potential ERR_PTR deref and ending up with a cleaner patch
- also wrote more extensive commit message

---
 .../gpu/drm/renesas/shmobile/shmob_drm_crtc.c    | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

LGTM now.

Signature · 2 lines
With best wishes
Dmitry
Tested-by on v2 41/41
#55 lore raw

Re: [PATCH v2 41/41] drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()

In reply to Luca Ceresoli

Hi Luca,

Quoted 9 lines · Luca Ceresoli

shmob_drm_connector_create() can init the connector in two ways, based on the 'if (sdev->pdata)':

1. manually in shmob_drm_connector_create(), or
2. delegating to drm_bridge_connector_init()

Whichever branch is taken, drm_connector_attach_encoder() is called immediately after to attach the connector to the encoder.

Quoted 7 lines

Now drm_bridge_connector_init() calls drm_connector_attach_encoder() on the connector so it is not needed anymore in case 2 and should be removed, but it is still needed in case 1. Move drm_connector_attach_encoder() from the common path to inside shmob_drm_connector_create() in order to get back to a single drm_connector_attach_encoder() in both cases.

For case 2:

As none of the old SH platform have been converted from sh_mobile_lcdc_fb to shmob-drm yet, case 1 cannot be tested.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Reviewed-by on the v2 series
#56 lore raw
In reply to Luca Ceresoli
Quoted 12 lines · Luca Ceresoli

This series simplifies using the bridge-connector by removing the need to attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

I don't know which one is more correct in this situation, but let it be R-B for the series:

Feel free to take the msm patches through drm-misc-next (A-b).

Signature · 2 lines
With best wishes
Dmitry
author reviewer
#57 lore raw
Quoted 14 lines · Dmitry Baryshkov
Quoted 12 lines · Luca Ceresoli

This series simplifies using the bridge-connector by removing the need to attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

Quoted 6 lines

I don't know which one is more correct in this situation, but let it be R-B for the series:

Feel free to take the msm patches through drm-misc-next (A-b).

Meaning: Acked-by on the msm patches + Reviewed-by on all the series, right?

Thank you very much!

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

maintainer
#58 lore raw
In reply to Luca Ceresoli
Quoted 62 lines · 在 2026-04-23四的 11:16 +0200,Luca Ceresoli写道:

This series simplifies using the bridge-connector by removing the need to
attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

 * Patch 1 adds a drm_connector_attach_encoder() call at the end of drm_bridge_connector_init()
 * The other patches remove drm_connector_attach_encoder() after all drm_bridge_connector_init() calls, ordered from the simplest ones (only the last one is somewhat non-obvious)

The Cc list is huge due to the many drivers touched. I sent v1 to a reduced
Cc list to ensure there is an agreement about the overall idea. That seems
to be the case, so now it's time to copy all drivers maintainers.

It would be nice to apply all of this series at once to avoid duplicated
calls to drm_connector_attach_encoder() in the interim. That would be harmless beacuse drm_connector_attach_encoder() is idempotent, but unpleasant.

== Additional rationale (for the curious)

Besides making the usage of the bridge-connector a bit simpler, this series
is in preparation for DRM bridge hotplug. Here's why, feel free to skip if
you don't care.

The old bridge hotplug proposals I have sent in the past [1] were based on
a hotplug-bridge driver to sit between the last fixed bridge and the first
hotplugged bridge. Discussion with the community led to the need of removing the hotplug-bridge and let common DRM code handle hotplug. The
common place of code that appears the most suitable for hotplug handling is
the bridge-connector, which is by now the recommended way to handle connector instantiation after a bridge chain.

So I'm in the process of extending the bridge-connector to be the central
point to handle bridge hotplug. Turns out the need to call drm_connector_attach_encoder() after drm_bridge_connector_init() has returned is adding big headaches to such work. So I'm send this long but
simple series to both simplify bridge-connector usage and remove one obstacle from the bridge hotplug work. This series is relevant by itself
anyway.

Quoted 8 lines

[1]
https://lore.kernel.org/lkml/[email protected]/

== Grand plan

This is part of the work to support hotplug of DRM bridges. The grand plan
was discussed in [0].

Just see the bridge hotplugging thing, is it possible for DRM drivers to declare bridges attached to themselves after this?

Loongson 7A1000 PCH can only output DPI signals, so nearly all products with it are shipping with some kind of external bridges, but currently drm/loongson does not support them (all display connectors are now seen as DPI ones, and connectors behind non-transparent bridges won't work).

The bridges are going to be accessed by the DDC I2C busses of 7A1000, and are not declared with device tree (systems with 7A1000 never ship with device trees, and Linux currently matches a built-in device tree). (Bridges being on the DDC I2C also introduces some dependency for them to depend on the drm/loongson driver.)

Loongson have defined some kind of VBIOS declaring what bridge is behind, and their non-mainline driver just contains driver codes for all possible bridges. (Sui Jingfeng previously tried to mainline such practice, and of course it's rejected because of code duplicity.)

Thanks,
Icenowy

Quoted 273 lines

Here's the work breakdown (➜ marks the current series):

 1. … add refcounting to DRM bridges struct drm_bridge, based on devm_drm_bridge_alloc()
    A. ✔ add new alloc API and refcounting (v6.16)
    B. ✔ convert all bridge drivers to new API (v6.17) C. ✔ kunit tests (v6.17)
    D. ✔ add get/put to drm_bridge_add/remove() + attach/detach() and warn on old allocation pattern (v6.17)
    E. … add get/put on drm_bridge accessors
       1. ✔ drm_bridge_chain_get_first_bridge(), add cleanup action (v6.18)
       2. ✔ drm_bridge_get_prev_bridge() (v6.18)
       3. ✔ drm_bridge_get_next_bridge() (v6.19)
       4. ✔ drm_for_each_bridge_in_chain() (v6.19)
       5. ✔ drm_bridge_connector_init (v6.19)
       6. ✔ protect encoder bridge chain with a mutex (v7.2)
       7. … of_drm_find_bridge
          a. ✔ add of_drm_get_bridge() (v7.0),
       convert basic direct users (v7.0-v7.1)
  b. ✔ convert direct of_drm_get_bridge() users, part 2
(v7.0)
  c. ✔ convert direct of_drm_get_bridge() users, part 3
(v7.0)
  d. ✔ convert direct of_drm_get_bridge() users, part 4
(v7.1-v7.2)
  e. … convert bridge-only drm_of_find_panel_or_bridge()
users
       8. drm_of_find_panel_or_bridge, *_of_get_bridge
       9. ✔ enforce drm_bridge_add before drm_bridge_attach (v6.19) F. ✔ debugfs improvements
       1. ✔ add top-level 'bridges' file (v6.16)
       2. ✔ show refcount and list lingering bridges (v6.19)
 2. … handle gracefully atomic updates during bridge removal A. ✔ Add drm_bridge_enter/exit() to protect device resources (v7.0)
    B. … protect private_obj removal from list
    C. ✔ Add drm_bridge_clear_and_put() (v7.1)
 3. … DSI host-device driver interaction
 4. ✔ removing the need for the "always-disconnected" connector
 5. ✔ Migrate i.MX LCDIF driver to bridge-connector (v7.2)
 6. ➜ DRM bridge hotplug
    A. ➜ Bridge hotplug management in the DRM core
       1. ➜ bridge-connector: attach encoder to the connector B.   Device tree description

[0]
https://lore.kernel.org/lkml/[email protected]/#t

---
Changes in v2:
- patch 1: update kdoc
- patch 41: fix by rewriting it fully
- update cover letter
- Link to v1:
https://patch.msgid.link/20260417-drm-bridge-connector-attach_encoder-v1-0-67b8b8fb872a@bootlin.com

To: Andrzej Hajda <[email protected]>
To: Neil Armstrong <[email protected]>
To: Robert Foss <[email protected]>
To: Laurent Pinchart <[email protected]>
To: Jonas Karlman <[email protected]>
To: Jernej Skrabec <[email protected]>
To: Maarten Lankhorst <[email protected]>
To: Maxime Ripard <[email protected]>
To: Thomas Zimmermann <[email protected]>
To: David Airlie <[email protected]>
To: Simona Vetter <[email protected]>
To: Sasha Finkelstein <[email protected]>
To: Janne Grunau <[email protected]>
To: Liu Ying <[email protected]>
To: Douglas Anderson <[email protected]>
To: Laurentiu Palcu <[email protected]>
To: Lucas Stach <[email protected]>
To: Frank Li <[email protected]>
To: Sascha Hauer <[email protected]>
To: Pengutronix Kernel Team <[email protected]>
To: Fabio Estevam <[email protected]>
To: Philipp Zabel <[email protected]>
To: Paul Cercueil <[email protected]>
To: Anitha Chrisanthus <[email protected]>
To: Chun-Kuang Hu <[email protected]>
To: Matthias Brugger <[email protected]>
To: AngeloGioacchino Del Regno <[email protected]>
To: Kevin Hilman <[email protected]>
To: Jerome Brunet <[email protected]>
To: Martin Blumenstingl <[email protected]>
To: Rob Clark <[email protected]>
To: Dmitry Baryshkov <[email protected]>
To: Abhinav Kumar <[email protected]>
To: Jessica Zhang <[email protected]>
To: Sean Paul <[email protected]>
To: Marijn Suijten <[email protected]>
To: Tomi Valkeinen <[email protected]>
To: Sandy Huang <[email protected]>
To: Heiko Stübner <[email protected]>
To: Andy Yan <[email protected]>
To: Thierry Reding <[email protected]>
To: Mikko Perttunen <[email protected]>
To: Jonathan Hunter <[email protected]>
To: Icenowy Zheng <[email protected]>
To: Jingoo Han <[email protected]>
To: Inki Dae <[email protected]>
To: Seung-Woo Kim <[email protected]>
To: Kyungmin Park <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Alim Akhtar <[email protected]>
To: Laurent Pinchart <[email protected]>
To: Tomi Valkeinen <[email protected]>
To: Kieran Bingham <[email protected]>
To: Geert Uytterhoeven <[email protected]>
To: Magnus Damm <[email protected]>
To: Biju Das <[email protected]>
To: Marek Vasut <[email protected]>
To: Stefan Agner <[email protected]>
To: Jyri Sarha <[email protected]>
To: Michal Simek <[email protected]>
Cc: Hui Pu <[email protected]>
Cc: Ian Ray <[email protected]>
Cc: Thomas Petazzoni <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
Luca Ceresoli (41):
      drm/display: bridge-connector: attach the encoder to the created connector
      drm: adp: remove now-redundant call to drm_connector_attach_encoder()
      drm/bridge: adv7511: remove now-redundant call to drm_connector_attach_encoder()
      drm/bridge: ite-it6263: remove now-redundant call to drm_connector_attach_encoder()
      drm/bridge: ti-sn65dsi86: remove now-redundant call to drm_connector_attach_encoder()
      drm/imx/dcss: remove now-redundant call to drm_connector_attach_encoder()
      drm/imx: ldb: remove now-redundant call to drm_connector_attach_encoder()
      drm/imx: parallel-display: remove now-redundant call to drm_connector_attach_encoder()
      drm/imx/lcdc: remove now-redundant call to drm_connector_attach_encoder()
      drm/ingenic: remove now-redundant call to drm_connector_attach_encoder()
      drm/kmb/dsi: remove now-redundant call to drm_connector_attach_encoder()
      drm/mediatek: mtk_dpi: remove now-redundant call to drm_connector_attach_encoder()
      drm/mediatek: mtk_dsi: remove now-redundant call to drm_connector_attach_encoder()
      drm/meson: encoder_cvbs: remove now-redundant call to drm_connector_attach_encoder()
      drm/meson: encoder_hdmi: remove now-redundant call to drm_connector_attach_encoder()
      drm/msm/dp: remove now-redundant call to drm_connector_attach_encoder()
      drm/msm/hdmi: remove now-redundant call to drm_connector_attach_encoder()
      drm/omapdrm: remove now-redundant call to drm_connector_attach_encoder()
      rm/rockchip: cdn-dp: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: rk3066_hdmi: remove now-redundant call to drm_connector_attach_encoder()
      drm/tegra: hdmi: remove now-redundant call to drm_connector_attach_encoder()
      drm/tegra: rgb: remove now-redundant call to drm_connector_attach_encoder()
      drm/tests: bridge: remove now-redundant call to drm_connector_attach_encoder()
      drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder()
      drm/exynos: exynos_dp: remove now-redundant call to drm_connector_attach_encoder()
      drm: rcar-du: encoder: remove now-redundant call to drm_connector_attach_encoder()
      drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: analogix_dp: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: dw_dp: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: inno-hdmi: remove now-redundant call to drm_connector_attach_encoder()
      drm/msm/mdp4: remove now-redundant call to drm_connector_attach_encoder()
      drm/msm/dsi: remove now-redundant call to drm_connector_attach_encoder()
      drm/mxsfb/lcdif: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()
      drm/tidss: remove now-redundant call to drm_connector_attach_encoder()
      drm/tilcdc: remove now-redundant call to drm_connector_attach_encoder()
      drm: zynqmp_kms: remove now-redundant call to drm_connector_attach_encoder()
      drm/imx: remove now-redundant call to drm_connector_attach_encoder()
      drm/rockchip: rgb: remove now-redundant call to drm_connector_attach_encoder()
      drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()

 drivers/gpu/drm/adp/adp_drv.c                     |  2 -- drivers/gpu/drm/bridge/adv7511/adv7511_drv.c      |  2 -- drivers/gpu/drm/bridge/ite-it6263.c               |  2 -- drivers/gpu/drm/bridge/ti-sn65dsi86.c             |  2 -- drivers/gpu/drm/display/drm_bridge_connector.c    | 11 +++++++++-- drivers/gpu/drm/exynos/exynos_dp.c                |  2 +- drivers/gpu/drm/imx/dc/dc-kms.c                   |  8 +------- drivers/gpu/drm/imx/dcss/dcss-kms.c               |  2 -- drivers/gpu/drm/imx/ipuv3/imx-ldb.c               |  2 -- drivers/gpu/drm/imx/ipuv3/parallel-display.c      |  2 -- drivers/gpu/drm/imx/lcdc/imx-lcdc.c               |  2 -- drivers/gpu/drm/ingenic/ingenic-drm-drv.c         |  2 -- drivers/gpu/drm/kmb/kmb_dsi.c                     |  2 +- drivers/gpu/drm/mediatek/mtk_dpi.c                |  1 - drivers/gpu/drm/mediatek/mtk_dsi.c                |  1 - drivers/gpu/drm/meson/meson_encoder_cvbs.c        |  2 -- drivers/gpu/drm/meson/meson_encoder_hdmi.c        |  2 -- drivers/gpu/drm/msm/disp/mdp4/mdp4_kms.c          |  7 ------- drivers/gpu/drm/msm/dp/dp_drm.c                   |  2 -- drivers/gpu/drm/msm/dsi/dsi_manager.c             |  4 ---- drivers/gpu/drm/msm/hdmi/hdmi.c                   |  2 -- drivers/gpu/drm/mxsfb/lcdif_drv.c                 |  6 ------ drivers/gpu/drm/omapdrm/omap_drv.c                |  2 -- drivers/gpu/drm/renesas/rcar-du/rcar_du_encoder.c |  2 +- drivers/gpu/drm/renesas/rz-du/rzg2l_du_encoder.c  |  2 +- drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 16 +++++++------
---
 drivers/gpu/drm/rockchip/analogix_dp-rockchip.c   |  2 +- drivers/gpu/drm/rockchip/cdn-dp-core.c            |  2 -- drivers/gpu/drm/rockchip/dw_dp-rockchip.c         |  2 +- drivers/gpu/drm/rockchip/dw_hdmi_qp-rockchip.c    |  2 +- drivers/gpu/drm/rockchip/inno_hdmi-rockchip.c     |  2 +- drivers/gpu/drm/rockchip/rk3066_hdmi.c            |  2 -- drivers/gpu/drm/rockchip/rockchip_lvds.c          |  6 ------ drivers/gpu/drm/rockchip/rockchip_rgb.c           |  9 --------- drivers/gpu/drm/tegra/hdmi.c                      |  2 -- drivers/gpu/drm/tegra/rgb.c                       |  2 -- drivers/gpu/drm/tests/drm_bridge_test.c           |  2 -- drivers/gpu/drm/tidss/tidss_encoder.c             |  6 ------ drivers/gpu/drm/tilcdc/tilcdc_encoder.c           |  6 ------ drivers/gpu/drm/verisilicon/vs_bridge.c           |  1 - drivers/gpu/drm/xlnx/zynqmp_kms.c                 |  6 ------

 41 files changed, 25 insertions(+), 117 deletions(-)

---
base-commit: 77fec37c895fcbdefbcec97cefd6d1f5cfdf1e3a
change-id: 20260416-drm-bridge-connector-attach_encoder-c651ac05705f

Best regards,
--
Luca Ceresoli <[email protected]>

author reviewer
#59 lore raw

Hello Icenowy,

Quoted 86 lines · Icenowy Zheng
Quoted 62 lines · 在 2026-04-23四的 11:16 +0200,Luca Ceresoli写道:

This series simplifies using the bridge-connector by removing the need to
attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of drm_bridge_connector_init() so all callers can be simplified.

 * Patch 1 adds a drm_connector_attach_encoder() call at the end of drm_bridge_connector_init()
 * The other patches remove drm_connector_attach_encoder() after all drm_bridge_connector_init() calls, ordered from the simplest ones (only the last one is somewhat non-obvious)

The Cc list is huge due to the many drivers touched. I sent v1 to a reduced
Cc list to ensure there is an agreement about the overall idea. That seems
to be the case, so now it's time to copy all drivers maintainers.

It would be nice to apply all of this series at once to avoid duplicated
calls to drm_connector_attach_encoder() in the interim. That would be harmless beacuse drm_connector_attach_encoder() is idempotent, but unpleasant.

== Additional rationale (for the curious)

Besides making the usage of the bridge-connector a bit simpler, this series
is in preparation for DRM bridge hotplug. Here's why, feel free to skip if
you don't care.

The old bridge hotplug proposals I have sent in the past [1] were based on
a hotplug-bridge driver to sit between the last fixed bridge and the first
hotplugged bridge. Discussion with the community led to the need of removing the hotplug-bridge and let common DRM code handle hotplug. The
common place of code that appears the most suitable for hotplug handling is
the bridge-connector, which is by now the recommended way to handle connector instantiation after a bridge chain.

So I'm in the process of extending the bridge-connector to be the central
point to handle bridge hotplug. Turns out the need to call drm_connector_attach_encoder() after drm_bridge_connector_init() has returned is adding big headaches to such work. So I'm send this long but
simple series to both simplify bridge-connector usage and remove one obstacle from the bridge hotplug work. This series is relevant by itself
anyway.

Quoted 8 lines

[1]
https://lore.kernel.org/lkml/[email protected]/

== Grand plan

This is part of the work to support hotplug of DRM bridges. The grand plan
was discussed in [0].

Just see the bridge hotplugging thing, is it possible for DRM drivers to declare bridges attached to themselves after this?

Loongson 7A1000 PCH can only output DPI signals, so nearly all products with it are shipping with some kind of external bridges, but currently drm/loongson does not support them (all display connectors are now seen as DPI ones, and connectors behind non-transparent bridges won't work).

The bridges are going to be accessed by the DDC I2C busses of 7A1000, and are not declared with device tree (systems with 7A1000 never ship with device trees, and Linux currently matches a built-in device tree). (Bridges being on the DDC I2C also introduces some dependency for them to depend on the drm/loongson driver.)

Quoted 4 lines

Loongson have defined some kind of VBIOS declaring what bridge is behind, and their non-mainline driver just contains driver codes for all possible bridges. (Sui Jingfeng previously tried to mainline such practice, and of course it's rejected because of code duplicity.)

I'm afraid your question goes a bit beyond my knowledge, the hotplug work I'm carrying on is focuses on DT platforms.

My limited understading of non-DT platforms is that a card driver must instantiate all components and tie them together, which assumes it has to know them somehow (ACPI, hardcoded, whatever). Others can probably comment better about this.

As a general principle, when devices can be mixed and matched by the board designer, hardcoding them is a bad design choice. Think of bad old board files written in C, which were unmanageable and got replaced exactly by device tree. So my opinion is that DRM encoders and bridges should know as little as possible about the following bridge, connector or panel that follows them.

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

maintainer
#60 lore raw
Quoted 127 lines · 在 2026-04-28二的 15:39 +0200,Luca Ceresoli写道:

Hello Icenowy,

Quoted 113 lines · Icenowy Zheng
Quoted 82 lines · 在 2026-04-23四的 11:16 +0200,Luca Ceresoli写道:

This series simplifies using the bridge-connector by removing the need to
attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

This is an unnecessary burden for users. Move the call to the end of
drm_bridge_connector_init() so all callers can be simplified.

 * Patch 1 adds a drm_connector_attach_encoder() call at the end of
   drm_bridge_connector_init()
 * The other patches remove drm_connector_attach_encoder() after all
   drm_bridge_connector_init() calls, ordered from the simplest ones
   (only the last one is somewhat non-obvious)

The Cc list is huge due to the many drivers touched. I sent v1 to a
reduced
Cc list to ensure there is an agreement about the overall idea. That
seems
to be the case, so now it's time to copy all drivers maintainers.

It would be nice to apply all of this series at once to avoid duplicated
calls to drm_connector_attach_encoder() in the interim. That would be
harmless beacuse drm_connector_attach_encoder() is idempotent, but
unpleasant.

== Additional rationale (for the curious)

Besides making the usage of the bridge-connector a bit simpler, this
series
is in preparation for DRM bridge hotplug. Here's why, feel free to
skip if
you don't care.

The old bridge hotplug proposals I have sent in the past [1] were based on
a hotplug-bridge driver to sit between the last fixed bridge and the
first
hotplugged bridge. Discussion with the community led to the need of
removing the hotplug-bridge and let common DRM code handle hotplug.
The
common place of code that appears the most suitable for hotplug handling is
the bridge-connector, which is by now the recommended way to handle
connector instantiation after a bridge chain.

So I'm in the process of extending the bridge-connector to be the central
point to handle bridge hotplug. Turns out the need to call drm_connector_attach_encoder() after drm_bridge_connector_init() has
returned is adding big headaches to such work. So I'm send this long
but
simple series to both simplify bridge-connector usage and remove one
obstacle from the bridge hotplug work. This series is relevant by itself
anyway.

[1]
https://lore.kernel.org/lkml/[email protected]/

Quoted 6 lines

== Grand plan

This is part of the work to support hotplug of DRM bridges. The grand
plan
was discussed in [0].

Just see the bridge hotplugging thing, is it possible for DRM drivers
to declare bridges attached to themselves after this?

Loongson 7A1000 PCH can only output DPI signals, so nearly all products
with it are shipping with some kind of external bridges, but currently
drm/loongson does not support them (all display connectors are now seen
as DPI ones, and connectors behind non-transparent bridges won't work).

The bridges are going to be accessed by the DDC I2C busses of 7A1000,
and are not declared with device tree (systems with 7A1000 never ship
with device trees, and Linux currently matches a built-in device tree).
(Bridges being on the DDC I2C also introduces some dependency for them
to depend on the drm/loongson driver.)

Quoted 6 lines

Loongson have defined some kind of VBIOS declaring what bridge is behind, and their non-mainline driver just contains driver codes for
all possible bridges. (Sui Jingfeng previously tried to mainline such
practice, and of course it's rejected because of code duplicity.)

I'm afraid your question goes a bit beyond my knowledge, the hotplug work
I'm carrying on is focuses on DT platforms.

Quoted 7 lines

My limited understading of non-DT platforms is that a card driver must
instantiate all components and tie them together, which assumes it has to
know them somehow (ACPI, hardcoded, whatever). Others can probably comment
better about this.

Yes, there's some proprietary way defined by Loongson to declare which device is attached.

The problem here is just to instantiate the attached devices (although parsing of the Loongson VBIOS data is also a TODO now) and prevent dependency loop.

Thanks,
Icenowy

Quoted 19 lines

As a general principle, when devices can be mixed and matched by the board
designer, hardcoding them is a bad design choice. Think of bad old board
files written in C, which were unmanageable and got replaced exactly by
device tree. So my opinion is that DRM encoders and bridges should know as
little as possible about the following bridge, connector or panel that
follows them.

Luca

--
Luca Ceresoli, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

author reviewer Applied
#61 lore raw
In reply to Luca Ceresoli
Quoted 10 lines · Luca Ceresoli

This series simplifies using the bridge-connector by removing the need to attach the newly created connector to the encoder.

== Series description

Currently all users of the bridge-connector must call drm_connector_attach_encoder() immediately after a successful drm_bridge_connector_init().

[...]

Applied, thanks!

[01/41] drm/display: bridge-connector: attach the encoder to the created connector

        commit: dcad6dd16e87a6dcc78ab05f64c704cec2809db9
[02/41] drm: adp: remove now-redundant call to drm_connector_attach_encoder()
        commit: f96e621e90dfeb35676604b223f42f721e7c364f
[03/41] drm/bridge: adv7511: remove now-redundant call to drm_connector_attach_encoder()
        commit: 4f88126e09160fa5c226e786982d433aba0345c4
[04/41] drm/bridge: ite-it6263: remove now-redundant call to drm_connector_attach_encoder()
        commit: 7ecf62396ed7883eda3bb949df7f95e5a1048b17
[05/41] drm/bridge: ti-sn65dsi86: remove now-redundant call to drm_connector_attach_encoder()
        commit: 1977688f60eab4c92dca15c8b7e6b19635902ee0
[06/41] drm/imx/dcss: remove now-redundant call to drm_connector_attach_encoder()
        commit: 4b29d25b55fc28ab6065500a60693b093ad05366
[07/41] drm/imx: ldb: remove now-redundant call to drm_connector_attach_encoder()
        commit: dd7784328061fba1fba919d8879ed65ea30feeae
[08/41] drm/imx: parallel-display: remove now-redundant call to drm_connector_attach_encoder()
        commit: 5c18883f8050b1f6fdb35050cf9dad64779f6ee9
[09/41] drm/imx/lcdc: remove now-redundant call to drm_connector_attach_encoder()
        commit: b490bc69f1c11d8335dbd628d5e32db8986f848c
[10/41] drm/ingenic: remove now-redundant call to drm_connector_attach_encoder()
        commit: bc9e6392403e316c9d6e337b7cf28543051cb28e
[11/41] drm/kmb/dsi: remove now-redundant call to drm_connector_attach_encoder()
        commit: d731d87126d43936ab74804785446f67a2d60d0c
[12/41] drm/mediatek: mtk_dpi: remove now-redundant call to drm_connector_attach_encoder()
        commit: c21f9adc83c5edf0b990cd068283d3c831b43074
[13/41] drm/mediatek: mtk_dsi: remove now-redundant call to drm_connector_attach_encoder()
        commit: 41bfe06bb3cae68c0b3e21c5181c49f68db67e18
[14/41] drm/meson: encoder_cvbs: remove now-redundant call to drm_connector_attach_encoder()
        commit: 82da98ea371dff7a9ece58083846556b043bec9a
[15/41] drm/meson: encoder_hdmi: remove now-redundant call to drm_connector_attach_encoder()
        commit: 013adec1a93dcd052c6eb1769609eee661983ca9
[16/41] drm/msm/dp: remove now-redundant call to drm_connector_attach_encoder()
        commit: 6108b5b7219e3f3f947922f4faa8ccbc570210d2
[17/41] drm/msm/hdmi: remove now-redundant call to drm_connector_attach_encoder()
        commit: f7ed1d3dde56b98e065b950d1044a0f655b194ba
[18/41] drm/omapdrm: remove now-redundant call to drm_connector_attach_encoder()
        commit: 7b229305be6300c90e6f005784f9f53d4d23d579
[19/41] rm/rockchip: cdn-dp: remove now-redundant call to drm_connector_attach_encoder()
        commit: 86909f184b4f045f4d85dd2ca957811c1184aa1c
[20/41] drm/rockchip: rk3066_hdmi: remove now-redundant call to drm_connector_attach_encoder()
        commit: d5304653b60edb79bfb71209ebbd4b57001ab003
[21/41] drm/tegra: hdmi: remove now-redundant call to drm_connector_attach_encoder()
        commit: c0670fc1e75782a9dd0cd94acb7b262077b3f720
[22/41] drm/tegra: rgb: remove now-redundant call to drm_connector_attach_encoder()
        commit: 04ce2e375f6dde267f53995d81c48ab31dc06b52
[23/41] drm/tests: bridge: remove now-redundant call to drm_connector_attach_encoder()
        commit: 6d303956b41f870240a23d4896ec12e420026637
[24/41] drm: verisilicon: remove now-redundant call to drm_connector_attach_encoder()
        commit: 6d65baa60f0d7c305eb63b738163c1e35d0eef20
[25/41] drm/exynos: exynos_dp: remove now-redundant call to drm_connector_attach_encoder()
        commit: d627f7e6318906da2b95ac60616af7501d5145a5
[26/41] drm: rcar-du: encoder: remove now-redundant call to drm_connector_attach_encoder()
        commit: fa38bb8dc2e852e2979593b965779b8cca532014
[27/41] drm: renesas: rz-du: rzg2l_du_encoder: remove now-redundant call to drm_connector_attach_encoder()
        commit: 88bcd924cd85a29658a60418f6e60a0f912f990c
[28/41] drm/rockchip: analogix_dp: remove now-redundant call to drm_connector_attach_encoder()
        commit: b7e25e250ea405f1c65256494b56e0f6443cc96a
[29/41] drm/rockchip: dw_dp: remove now-redundant call to drm_connector_attach_encoder()
        commit: 8015bfccca36672e412dae4240886c71278c5b3c
[30/41] drm/rockchip: dw_hdmi_qp: remove now-redundant call to drm_connector_attach_encoder()
        commit: 14a25df41b19aba228e66c0d9578e6e6b3cc58f9
[31/41] drm/rockchip: inno-hdmi: remove now-redundant call to drm_connector_attach_encoder()
        commit: 6db094d4ce87fb4caf90db9863bb6a8b427b15c9
[32/41] drm/msm/mdp4: remove now-redundant call to drm_connector_attach_encoder()
        commit: 4e833e078f3d40d4f4a24c162210a1b7855f1539
[33/41] drm/msm/dsi: remove now-redundant call to drm_connector_attach_encoder()
        commit: f9274ba1dff8b0adff22e8d877ec1e85bb14d0c3
[34/41] drm/mxsfb/lcdif: remove now-redundant call to drm_connector_attach_encoder()
        commit: da3918b645a5efe6fad2aa53b84a4d98c3df999c
[35/41] drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()
        commit: 24202edb689ead20411568251792a31103b9bde0
[35/41] drm/rockchip: lvds: remove now-redundant call to drm_connector_attach_encoder()
        commit: 24202edb689ead20411568251792a31103b9bde0
[37/41] drm/tilcdc: remove now-redundant call to drm_connector_attach_encoder()
        commit: 055673da01cdb130732ee556db58f7408392c1b8
[38/41] drm: zynqmp_kms: remove now-redundant call to drm_connector_attach_encoder()
        commit: 42ccccb38ca8bac394faeb30c924ad542f5f1bee
[39/41] drm/imx: remove now-redundant call to drm_connector_attach_encoder()
        commit: 2b727270b955b72cf6f47c5883bdc6f997f0e06f
[40/41] drm/rockchip: rgb: remove now-redundant call to drm_connector_attach_encoder()
        commit: d5d8e04dc0557437b19039206012305166df2bf7
[41/41] drm: renesas: shmobile: remove now-redundant call to drm_connector_attach_encoder()
        commit: 6533278b0deb14de860035dd1913e1e55e781e60

Best regards,

Signature · 1 line
Luca Ceresoli <[email protected]>