Browse Source

msm: ipa3: fix the hw_type_index in ipa pre-init

Fixing updating of hw_type_index and max_num_smmu_cb
in ipa pre-init

Change-Id: I5de017dbe07dae85ec1ec74f5589a150a663216c
Signed-off-by: Michael Adisumarta <[email protected]>
Michael Adisumarta 4 years ago
parent
commit
8619f98b41
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa.c

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa.c

@@ -7656,6 +7656,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
 			resource_p->tx_wrapper_cache_max_size);
 	ipa3_ctx->ipa_config_is_auto = resource_p->ipa_config_is_auto;
 	ipa3_ctx->ipa_mhi_proxy = resource_p->ipa_mhi_proxy;
+	ipa3_ctx->max_num_smmu_cb = resource_p->max_num_smmu_cb;
+	ipa3_ctx->hw_type_index = ipa3_get_hw_type_index();
 	ipa3_ctx->ipa_wdi3_2g_holb_timeout =
 		resource_p->ipa_wdi3_2g_holb_timeout;
 	ipa3_ctx->ipa_wdi3_5g_holb_timeout =