]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/bridge: make devm_drm_bridge_alloc() mandatory for bridge allocation
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 26 Mar 2025 17:47:37 +0000 (18:47 +0100)
committerLouis Chauvet <louis.chauvet@bootlin.com>
Mon, 7 Apr 2025 09:38:05 +0000 (11:38 +0200)
commitb3f13e00a8de351832df7d628a15ca4db49ca94f
treeca7747014f7261a2eabe201446663a01bcc867da
parent30d1b37d4c022b5e6c164c090a60a3be1a66876e
drm/bridge: make devm_drm_bridge_alloc() mandatory for bridge allocation

All DRM bridges are now supposed to be allocated using
devm_drm_bridge_alloc(), which is cleaner and necessary to support
refcounting.

In the absence of a drm_bridge_init() or such initialization function,
document the new mandatory alloc function on the first DRM bridge core
function that is called after allocation, i.e. drm_bridge_add().

Suggested-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20250326-drm-bridge-refcount-v9-3-5e0661fe1f84@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
drivers/gpu/drm/drm_bridge.c