drm/debugfs: rework debugfs directory creation v5
authorChristian König <ckoenig.leichtzumerken@gmail.com>
Tue, 29 Aug 2023 11:01:13 +0000 (13:01 +0200)
committerChristian König <christian.koenig@amd.com>
Fri, 1 Sep 2023 06:51:18 +0000 (08:51 +0200)
commit0b30d57acafcaa5374756d314ee54f80d0bcc860
tree39096f84ff057c447719d6cb284578f149802c55
parent19ecbe8325a2a7ffda5ff4790955b84eaccba49f
drm/debugfs: rework debugfs directory creation v5

Instead of the per minor directories only create a single debugfs
directory for the whole device directly when the device is initialized.

For DRM devices each minor gets a symlink to the per device directory
for now until we can be sure that this isn't useful any more in any way.

Accel devices create only the per device directory and also drops the mid
layer callback to create driver specific files.

v2: cleanup accel component as well
v3: fix typo when debugfs is disabled
v4: call drm_debugfs_dev_fini() during release as well,
    some kerneldoc typos fixed
v5: rebased and one more kerneldoc fix

Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230829110115.3442-4-christian.koenig@amd.com
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
15 files changed:
drivers/accel/drm_accel.c
drivers/gpu/drm/drm_atomic.c
drivers/gpu/drm/drm_bridge.c
drivers/gpu/drm/drm_client.c
drivers/gpu/drm/drm_crtc_internal.h
drivers/gpu/drm/drm_debugfs.c
drivers/gpu/drm/drm_drv.c
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_internal.h
include/drm/drm_accel.h
include/drm/drm_bridge.h
include/drm/drm_client.h
include/drm/drm_device.h
include/drm/drm_drv.h
include/drm/drm_file.h