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

Commit 31063b8e authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: ipa3: Fix to differ ipa probe if msm bus driver register fails"

parents abe1b4f9 4c227304
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -5418,7 +5418,8 @@ static int ipa3_pre_init(const struct ipa3_plat_drv_res *resource_p,
				ipa3_ctx->ctrl->msm_bus_data_ptr);
		if (!ipa3_ctx->ipa_bus_hdl) {
			IPAERR("fail to register with bus mgr!\n");
			result = -ENODEV;
			ipa3_ctx->ctrl->msm_bus_data_ptr = NULL;
			result = -EPROBE_DEFER;
			goto fail_bus_reg;
		}
	}
@@ -6861,6 +6862,10 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
	IPADBG("dev->of_node->name = %s\n", dev->of_node->name);

	if (of_device_is_compatible(dev->of_node, "qcom,ipa-smmu-ap-cb")) {
		if (ipa3_ctx == NULL) {
			IPAERR("ipa3_ctx was not initialized\n");
			return -EPROBE_DEFER;
		}
		cb = ipa3_get_smmu_ctx(IPA_SMMU_CB_AP);
		cb->dev = dev;
		smmu_info.present[IPA_SMMU_CB_AP] = true;
@@ -6869,6 +6874,10 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
	}

	if (of_device_is_compatible(dev->of_node, "qcom,ipa-smmu-wlan-cb")) {
		if (ipa3_ctx == NULL) {
			IPAERR("ipa3_ctx was not initialized\n");
			return -EPROBE_DEFER;
		}
		cb = ipa3_get_smmu_ctx(IPA_SMMU_CB_WLAN);
		cb->dev = dev;
		smmu_info.present[IPA_SMMU_CB_WLAN] = true;
@@ -6877,6 +6886,10 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
	}

	if (of_device_is_compatible(dev->of_node, "qcom,ipa-smmu-uc-cb")) {
		if (ipa3_ctx == NULL) {
			IPAERR("ipa3_ctx was not initialized\n");
			return -EPROBE_DEFER;
		}
		cb =  ipa3_get_smmu_ctx(IPA_SMMU_CB_UC);
		cb->dev = dev;
		smmu_info.present[IPA_SMMU_CB_UC] = true;