2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/gpu/drm/bridge/imx
Luca Ceresoli e74b84cd83
drm/bridge: imx8*-ldb: convert to devm_drm_bridge_alloc() API
This is the new API for allocating DRM bridges.

These two drivers are tangled together by the ldb_add_bridge_helper(), so
they are converted at once.

They also have a similar design, each embedding an array of channels in
their main struct, and each channel embeds a drm_bridge. This prevents
dynamic, refcount-based deallocation of the bridges.

To make the new, dynamic bridge allocation possible:

 * change the array of channels into an array of channel pointers
 * allocate each channel using devm_drm_bridge_alloc()
 * adapt ldb_add_bridge_helper() to not set the funcs pointer
   (now done by devm_drm_bridge_alloc())
 * adapt the code wherever using the channels

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250424-drm-bridge-convert-to-alloc-api-v2-31-8f91a404d86b@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
2025-04-29 11:21:26 +02:00
..
imx8mp-hdmi-pvi.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
imx8mp-hdmi-tx.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
imx8qm-ldb.c drm/bridge: imx8*-ldb: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:26 +02:00
imx8qxp-ldb.c drm/bridge: imx8*-ldb: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:26 +02:00
imx8qxp-pixel-combiner.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
imx8qxp-pixel-link.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
imx8qxp-pxl2dpi.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
imx93-mipi-dsi.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
imx-ldb-helper.c drm/bridge: imx8*-ldb: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:26 +02:00
imx-ldb-helper.h drm/bridge: imx8*-ldb: convert to devm_drm_bridge_alloc() API 2025-04-29 11:21:26 +02:00
imx-legacy-bridge.c drm/bridge: Add encoder parameter to drm_bridge_funcs.attach 2025-03-20 14:45:38 +01:00
Kconfig drm/imx: add internal bridge handling display-timings DT node 2024-09-03 02:35:35 +03:00
Makefile drm/imx: add internal bridge handling display-timings DT node 2024-09-03 02:35:35 +03:00