diff options
author | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2025-08-19 12:42:10 +0300 |
---|---|---|
committer | Luca Ceresoli <luca.ceresoli@bootlin.com> | 2025-09-02 12:18:55 +0300 |
commit | 2a06126d1624f0661fac0833e7ee1dbdc636154e (patch) | |
tree | d9509a56001f6c4ab910def9f8906eb7ee2b5b75 /drivers/gpu/drm/drm_bridge.c | |
parent | b2b8af21fec35be417a3199b5a6c354605dd222a (diff) | |
download | linux-2a06126d1624f0661fac0833e7ee1dbdc636154e.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/drm_bridge.c')
-rw-r--r-- | drivers/gpu/drm/drm_bridge.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c index dd439d55177a..d031447eebc9 100644 --- a/drivers/gpu/drm/drm_bridge.c +++ b/drivers/gpu/drm/drm_bridge.c @@ -1435,6 +1435,9 @@ static void drm_bridge_debugfs_show_bridge(struct drm_printer *p, unsigned int idx) { drm_printf(p, "bridge[%u]: %ps\n", idx, bridge->funcs); + + drm_printf(p, "\trefcount: %u\n", kref_read(&bridge->refcount)); + drm_printf(p, "\ttype: [%d] %s\n", bridge->type, drm_get_connector_type_name(bridge->type)); |