Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/todo: add entry about converting to of_drm_find_and_get_bridge()

of_drm_find_bridge() is deprecated, but converting some users is very
complex and should be reasonably doable only after the DRM panel bridge
lifetime rework. Add a TODO to track this.

Suggested-by: Maxime Ripard <mripard@kernel.org>
Link: https://lore.kernel.org/dri-devel/20250319-stylish-lime-mongoose-0a18ad@houat/
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patch.msgid.link/20251216-drm-bridge-alloc-getput-drm_of_find_bridge-v3-3-b5165fab8058@bootlin.com
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>

+16
+16
Documentation/gpu/todo.rst
··· 506 506 507 507 Level: Intermediate 508 508 509 + Convert users of of_drm_find_bridge() to of_drm_find_and_get_bridge() 510 + --------------------------------------------------------------------- 511 + 512 + Taking a struct drm_bridge pointer requires getting a reference and putting 513 + it after disposing of the pointer. Most functions returning a struct 514 + drm_bridge pointer already call drm_bridge_get() to increment the refcount 515 + and their users have been updated to call drm_bridge_put() when 516 + appropriate. of_drm_find_bridge() does not get a reference and it has been 517 + deprecated in favor of of_drm_find_and_get_bridge() which does, but some 518 + users still need to be converted. 519 + 520 + Contact: Maxime Ripard <mripard@kernel.org>, 521 + Luca Ceresoli <luca.ceresoli@bootlin.com> 522 + 523 + Level: Intermediate 524 + 509 525 Core refactorings 510 526 ================= 511 527