[PATCH v4 0/3] drm: remove deprecated *_of_get_bridge() from non-OF drivers

From: Luca Ceresoli

Date: Thu Nov 05 2026 - 05:37:33 EST


Replace the deprecated *_of_get_bridge() calls with
of_drm_get_bridge_by_endpoint() for all drivers which can be built without
CONFIG_OF.

Some of those drivers had a build failure for configs without
CONFIG_OF. This series used have fixes for those failures plus other
patches to convert all other such drivers to
of_drm_get_bridge_by_endpoint().

All the fixes are already applied, so since v3 there are only the
improvement patches not yet applied.

Signed-off-by: Luca Ceresoli <luca.ceresoli@xxxxxxxxxxx>
---
Changes in v4:
- Fix bridge leak on rebind
- Add patch to simplify vc4_dsi_bridge_attach()
- Remove patch to inline vc4_dpi_init_bridge()
- Remove outdated comment
- Link to v3: https://patch.msgid.link/20261013-drm-fix-of_get_bridge-build-regression-v3-0-0b4c0b65be82@xxxxxxxxxxx

Changes in v3:
- Patch 1: re-add comment, updated
- Patch 2: fix bridge reference leak in error path
- Patch 3: new patch suggested during v2 review
- Link to v2: https://patch.msgid.link/20260929-drm-fix-of_get_bridge-build-regression-v2-0-6da431d8f180@xxxxxxxxxxx

Changes in v2:
- Fix bugs in patches 2,3,4
- Fix removed function name in patches 5,6
- Mention lkp reports in patches 2,3
- Add review tags on patches not modified since v1
- Link to v1: https://patch.msgid.link/20260929-drm-fix-of_get_bridge-build-regression-v1-0-ccb7e602daad@xxxxxxxxxxx

---
Luca Ceresoli (3):
drm/vc4: dpi: stop using deprecated drmm_of_get_bridge()
drm/vc4: dsi: stop using deprecated drmm_of_get_bridge()
drm/vc4: dsi: remove unnecessary intermediate pointer computation

drivers/gpu/drm/vc4/vc4_dpi.c | 10 +++-------
drivers/gpu/drm/vc4/vc4_dsi.c | 29 ++++++++++++++++++-----------
2 files changed, 21 insertions(+), 18 deletions(-)
---
base-commit: f8d77e2376e2cb931111576b15827ee8a9c59e4f
change-id: 20260929-drm-fix-of_get_bridge-build-regression-98f22f8a1dcc

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