Browse Source

Merge "msm: ipa3: debug change"

qctecmdr 2 years ago
parent
commit
cf2cd24579
1 changed files with 8 additions and 0 deletions
  1. 8 0
      drivers/platform/msm/ipa/ipa_v3/ipa.c

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

@@ -9919,6 +9919,10 @@ static int get_ipa_dts_configuration(struct platform_device *pdev,
 		IPAERR(":get resource failed for ipa-hw-ver\n");
 		return -ENODEV;
 	}
+
+	if(ipa_drv_res->ipa_hw_type == 24) {
+		ipa_drv_res->ipa_hw_type = IPA_HW_v5_5;
+	}
 	IPADBG(": ipa_hw_type = %d", ipa_drv_res->ipa_hw_type);
 
 	if (ipa_drv_res->ipa_hw_type < IPA_HW_v3_0) {
@@ -11243,6 +11247,10 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p)
 		pr_debug("ipa: ipa_hw_type = %d\n", ipa3_ctx->ipa_hw_type);
 	}
 
+	if (ipa3_ctx->ipa_hw_type == 24) {
+		ipa3_ctx->ipa_hw_type = IPA_HW_v5_5;
+	}
+
 	if (ipa3_ctx->ipa_hw_type < IPA_HW_v3_0) {
 		pr_err(":IPA version below 3.0 not supported\n");
 		return -ENODEV;