msm: ipa: vote the ipa clock before enable wdi channel

Move the PM activate before enable WDI channel.

Change-Id: I8146305b1548bdcb0d2c3d60d21854b35433fede
This commit is contained in:
Bojun Pan
2020-10-22 17:44:14 -07:00
committed by Gerrit - the friendly Code Review server
parent e38ac9778b
commit 8dfbec3dad

View File

@@ -635,6 +635,12 @@ static int ipa_wdi_enable_pipes_internal(void)
if (ipa_ep_idx_tx <= 0 || ipa_ep_idx_rx <= 0)
return -EFAULT;
ret = ipa_pm_activate_sync(ipa_wdi_ctx->ipa_pm_hdl);
if (ret) {
IPA_WDI_ERR("fail to activate ipa pm\n");
return -EFAULT;
}
if (ipa_wdi_ctx->wdi_version == IPA_WDI_3) {
if (ipa3_enable_wdi3_pipes(ipa_ep_idx_tx, ipa_ep_idx_rx)) {
IPA_WDI_ERR("fail to enable wdi pipes\n");
@@ -666,12 +672,6 @@ static int ipa_wdi_enable_pipes_internal(void)
}
}
ret = ipa_pm_activate_sync(ipa_wdi_ctx->ipa_pm_hdl);
if (ret) {
IPA_WDI_ERR("fail to activate ipa pm\n");
return -EFAULT;
}
return 0;
}