Skip to content

Commit 5df362a

Browse files
Tero Kristo via iommujoergroedel
authored andcommitted
iommu/omap: Add registration for DT fwnode pointer
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 46b14fc commit 5df362a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/iommu/omap-iommu.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1236,6 +1236,7 @@ static int omap_iommu_probe(struct platform_device *pdev)
12361236
goto out_group;
12371237

12381238
iommu_device_set_ops(&obj->iommu, &omap_iommu_ops);
1239+
iommu_device_set_fwnode(&obj->iommu, &of->fwnode);
12391240

12401241
err = iommu_device_register(&obj->iommu);
12411242
if (err)

0 commit comments

Comments
 (0)