Skip to content

Commit

Permalink
iommu/omap: Add registration for DT fwnode pointer
Browse files Browse the repository at this point in the history
The fwnode pointer must be passed to the iommu core, so that the core
can map the IOMMU towards device requests properly. Without this, some
IOMMU clients like OMAP remoteproc will fail the iommu configuration
multiple times with -EPROBE_DEFER, which will eventually be ignored with
a kernel warning banner.

Signed-off-by: Tero Kristo <t-kristo@ti.com>
Link: https://lore.kernel.org/r/20200424145828.3159-1-t-kristo@ti.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
  • Loading branch information
Tero Kristo via iommu authored and Joerg Roedel committed May 18, 2020
1 parent 46b14fc commit 5df362a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/iommu/omap-iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1236,6 +1236,7 @@ static int omap_iommu_probe(struct platform_device *pdev)
goto out_group;

iommu_device_set_ops(&obj->iommu, &omap_iommu_ops);
iommu_device_set_fwnode(&obj->iommu, &of->fwnode);

err = iommu_device_register(&obj->iommu);
if (err)
Expand Down

0 comments on commit 5df362a

Please sign in to comment.