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

Skip to content
Commit c47dcd4f authored by Patrick Daly's avatar Patrick Daly Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarPatrick Daly <pdaly@codeaurora.org>
parent 3ae5b10c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment