msm: ipa3: fix debugfs creation order
IPA unit-test module is initialized by IPA ready callback.
The ready callback is called before creating IPA debugfs root
folder in which IPA unit-test module depends on.
Change-Id: Id3e867cd074730a3006e124d1074bedef081920a
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
diff --git a/drivers/platform/msm/ipa/ipa_v3/ipa.c b/drivers/platform/msm/ipa/ipa_v3/ipa.c
index af926fb..9eb3c35 100644
--- a/drivers/platform/msm/ipa/ipa_v3/ipa.c
+++ b/drivers/platform/msm/ipa/ipa_v3/ipa.c
@@ -4718,12 +4718,12 @@
ipa3_ctx->ipa_initialization_complete = true;
mutex_unlock(&ipa3_ctx->lock);
+ ipa3_debugfs_init();
+
ipa3_trigger_ipa_ready_cbs();
complete_all(&ipa3_ctx->init_completion_obj);
pr_info("IPA driver initialization was successful.\n");
- ipa3_debugfs_init();
-
return 0;
fail_teth_bridge_driver_init: