drm/msm/sde: fix debugfs creation order issues
Fix debugfs ordering issue that prevents debugfs registration
for DRM objects and sde_core_irq. DRM objects should not be
put into the debug sub-folder, but in the actual dri node
directory. This resolves an issue where the subdirectory is
not yet available when the DRM late registration callbacks
are invoked. Also fixes a similar issue where the core_irq
module attempts to register earlier than the debugfs dir
creation.
Change-Id: Ie0c5d15cf68e410ba663a5635a53451fac728f90
Signed-off-by: Lloyd Atkinson <latkinso@codeaurora.org>
diff --git a/drivers/gpu/drm/msm/sde/sde_encoder.c b/drivers/gpu/drm/msm/sde/sde_encoder.c
index 20d5e52..032f6fc 100644
--- a/drivers/gpu/drm/msm/sde/sde_encoder.c
+++ b/drivers/gpu/drm/msm/sde/sde_encoder.c
@@ -1559,7 +1559,7 @@
/* create overall sub-directory for the encoder */
sde_enc->debugfs_root = debugfs_create_dir(name,
- sde_debugfs_get_root(sde_kms));
+ drm_enc->dev->primary->debugfs_root);
if (!sde_enc->debugfs_root)
return -ENOMEM;