Эх сурвалжийг харах

msm: ipa3: debug change

Added workaround change to handle ipa hw version change as
updating ipa hw version in dtsi and kernel cant be performed in
single build.

Change-Id: I78ff16cb7b677e412cf297224f570b4c1c347cbf
Signed-off-by: Raghavendar rao l <[email protected]>
Raghavendar rao l 3 жил өмнө
parent
commit
e96c9f91de

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

@@ -9631,6 +9631,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) {
@@ -10955,6 +10959,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;