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

Commit 115bf8ab authored by Ghanim Fodi's avatar Ghanim Fodi
Browse files

msm: ipa3: Fix IPA SMMU devices prob order



Calling of_platform_populate() for the IPA smmu context
banks devices from the IPA master device prob, will trigger
prob for these devices before the master prob finished.
Make this call to be the last thing at the master prob
so the smmu devices prob will execute when all the needed
configurations ready.

Change-Id: I01e77dfd463b0d133a138b149de99a0581f0ee07
Signed-off-by: default avatarGhanim Fodi <gfodi@codeaurora.org>
parent fa403c81
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -5488,13 +5488,6 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
		return result;
		return result;
	}
	}


	result = of_platform_populate(pdev_p->dev.of_node,
		pdrv_match, NULL, &pdev_p->dev);
	if (result) {
		IPAERR("failed to populate platform\n");
		return result;
	}

	if (of_property_read_bool(pdev_p->dev.of_node, "qcom,arm-smmu")) {
	if (of_property_read_bool(pdev_p->dev.of_node, "qcom,arm-smmu")) {
		if (of_property_read_bool(pdev_p->dev.of_node,
		if (of_property_read_bool(pdev_p->dev.of_node,
		    "qcom,smmu-s1-bypass"))
		    "qcom,smmu-s1-bypass"))
@@ -5540,6 +5533,13 @@ int ipa3_plat_drv_probe(struct platform_device *pdev_p,
		}
		}
	}
	}


	result = of_platform_populate(pdev_p->dev.of_node,
		pdrv_match, NULL, &pdev_p->dev);
	if (result) {
		IPAERR("failed to populate platform\n");
		return result;
	}

	return result;
	return result;
}
}