]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/debugfs: add top-level 'bridges' file showing all added bridges
authorLuca Ceresoli <luca.ceresoli@bootlin.com>
Wed, 26 Feb 2025 21:23:53 +0000 (22:23 +0100)
committerLouis Chauvet <louis.chauvet@bootlin.com>
Wed, 12 Mar 2025 09:50:33 +0000 (10:50 +0100)
commiteff0347e7c228335e9ff64aaf02c66957803af6a
treea157192cdbdc5af2f92842456c84129dd344c372
parent9497c5a0f7c26ff81f11df738a94c6b80f890c0a
drm/debugfs: add top-level 'bridges' file showing all added bridges

The global bridges_list holding all the bridges between drm_bridge_add()
and drm_bridge_remove() cannot be inspected via debugfs. Add a file showing
it.

To avoid code duplication, move the code printing a bridge info to a common
function.

Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250226-drm-debugfs-show-all-bridges-v8-2-bb511cc49d83@bootlin.com
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
drivers/gpu/drm/drm_bridge.c
drivers/gpu/drm/drm_drv.c
include/drm/drm_bridge.h