iommu: arm-smmu: Fixup of_iommu_configure failure
The upstream iommu framework attempts to probe the iommu driver as a
postcore_initcall, and register iommu_ops. Later in arch_initcall_sync,
of_platform_default_populate_init() causes of_iommu_configure to be called
for each device, and call iommu_ops->of_xlate() as appropriate.
However due to resource dependencies on clocks and regulators, the msmskunk
iommu driver cannot be probed until after the clock and regulator drivers
have probed. Therefore the first pass at of_iommu_configure fails since the
iommu_ops are not registered.
Fix this by calling of_iommu_configure() manually at the end of iommu
driver probe.
Change-Id: I95581349a0aa7255633f51f02f51f9b91f17f9ef
Signed-off-by:
Patrick Daly <pdaly@codeaurora.org>
Loading
Please register or sign in to comment