mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/
synced 2026-04-18 06:33:43 -04:00
drm: move drm based debugfs funcs to drm_debugfs.c
Requirement is to create per client-id based directories to hold key debugging information and for that access to root debugfs dentry is need which is not in one place and that information cannot be stored in drm_device. Move the debugfs functionality from drm_drv.c and drm_accel.c to drm_debugfs.c This enables debugfs root node reference directly drm_debugfs.c and hence enable to create per client-id directory. v8: Create drm_accel dentry only if it's config is enabled (Jeff, Hugo) v8: Merge drm_drv and drm_accel debugfs patches (Koenig, Christian) v10: Since we moved drm_debugfs_root, hence to handle drm bridge debugfs add a new function which call drm_bridge_debugfs_params where drm_debugfs_root is accessible. Suggested-by: Christian König <christian.koenig@amd.com> Signed-off-by: Sunil Khatri <sunil.khatri@amd.com> Link: https://lore.kernel.org/r/20250704075548.1549849-2-sunil.khatri@amd.com Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
committed by
Christian König
parent
9cbc40521b
commit
348fe34a61
@@ -182,8 +182,7 @@ void drm_gem_vunmap_locked(struct drm_gem_object *obj, struct iosys_map *map);
|
||||
#if defined(CONFIG_DEBUG_FS)
|
||||
void drm_debugfs_dev_fini(struct drm_device *dev);
|
||||
void drm_debugfs_dev_register(struct drm_device *dev);
|
||||
int drm_debugfs_register(struct drm_minor *minor, int minor_id,
|
||||
struct dentry *root);
|
||||
int drm_debugfs_register(struct drm_minor *minor, int minor_id);
|
||||
void drm_debugfs_unregister(struct drm_minor *minor);
|
||||
void drm_debugfs_connector_add(struct drm_connector *connector);
|
||||
void drm_debugfs_connector_remove(struct drm_connector *connector);
|
||||
@@ -201,8 +200,7 @@ static inline void drm_debugfs_dev_register(struct drm_device *dev)
|
||||
{
|
||||
}
|
||||
|
||||
static inline int drm_debugfs_register(struct drm_minor *minor, int minor_id,
|
||||
struct dentry *root)
|
||||
static inline int drm_debugfs_register(struct drm_minor *minor, int minor_id)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user