Skip to content

Commit 2a06126

Browse files
committed
drm/debugfs: bridges_show: show refcount
Now that bridges are refcounted, exposing the refcount in debugfs can be useful. Suggested-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20250819-drm-bridge-debugfs-removed-v7-1-970702579978@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
1 parent b2b8af2 commit 2a06126

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/drm_bridge.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1435,6 +1435,9 @@ static void drm_bridge_debugfs_show_bridge(struct drm_printer *p,
14351435
unsigned int idx)
14361436
{
14371437
drm_printf(p, "bridge[%u]: %ps\n", idx, bridge->funcs);
1438+
1439+
drm_printf(p, "\trefcount: %u\n", kref_read(&bridge->refcount));
1440+
14381441
drm_printf(p, "\ttype: [%d] %s\n",
14391442
bridge->type,
14401443
drm_get_connector_type_name(bridge->type));

0 commit comments

Comments
 (0)