Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7705d29b authored by Raghavendar rao l's avatar Raghavendar rao l Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Fix to avoid the boot up crash in non smmu targets



Updated change to perform ipa pre initialization even before
attempting to load the ipa firmware along with pdev node
initialization for non smmu target.

Change-Id: I04421c1f11f0c7b4d7a0f30135741946b157aa2c
Signed-off-by: default avatarRaghavendar rao l <quic_rlomte@quicinc.com>
parent 858b405f
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -9538,7 +9538,17 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p)
				return -EOPNOTSUPP;
			}
		}
		/* Below update of pre init for non smmu device, As
		 * existing flow initialzies only for smmu
		 * enabled node.*/

		result = ipa3_pre_init(&ipa3_res, pdev_p);
		if (result) {
			IPAERR("ipa3_init failed\n");
			return result;
		}
		ipa_fw_load_sm_handle_event(IPA_FW_LOAD_EVNT_SMMU_DONE);
		goto skip_repeat_pre_init;
	}

	/* Proceed to real initialization */
@@ -9548,6 +9558,7 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p)
		return result;
	}

skip_repeat_pre_init:
	result = of_platform_populate(pdev_p->dev.of_node,
		ipa_plat_drv_match, NULL, &pdev_p->dev);
	if (result) {