linux/drivers/gpu/drm/mcde
Luca Ceresoli a480f5c6f5 drm/mcde: dsi: convert to of_drm_find_and_get_bridge()
of_drm_find_bridge() is deprecated. Move to its replacement
of_drm_find_and_get_bridge() which gets a bridge reference, and ensure it
is put when done.

We need to handle the two cases: when a panel is found and when it isn't,
even though the latter is not supported. So:

 * in case a panel is not found and bridge is, get a reference to the
   found bridge
 * in case a panel is found, get a reference to the panel_bridge when it
   is added, so the following code always get exactly one reference that
   it needs to put

Finally, use the next_bridge pointer in struct drm_bridge in order to
simplify putting the reference.

Reviewed-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260131-drm-bridge-alloc-getput-drm_of_find_bridge-4-v2-4-e081bcdc1467@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
2026-02-23 10:10:34 +01:00
..
Kconfig drm/mcde: Run DRM default client setup 2024-09-26 08:28:05 +02:00
Makefile drm/mcde: Support DPI output 2020-11-24 00:09:08 +01:00
mcde_clk_div.c drm/mcde/mcde_clk_div: convert from round_rate() to determine_rate() 2025-09-15 15:08:15 +02:00
mcde_display_regs.h drm/mcde: Support DPI output 2020-11-24 00:09:08 +01:00
mcde_display.c drm: include drm_print.h where needed 2025-10-31 10:34:52 +02:00
mcde_drm.h drm/mcde: Support DPI output 2020-11-24 00:09:08 +01:00
mcde_drv.c Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2024-12-09 16:35:21 +01:00
mcde_dsi_regs.h drm/mcde: Some fixes to handling video mode 2019-12-17 21:20:03 +01:00
mcde_dsi.c drm/mcde: dsi: convert to of_drm_find_and_get_bridge() 2026-02-23 10:10:34 +01:00