Skip to content

Commit 5f64897

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/fsl: Always allocate a group for non-pci devices
fsl_pamu_device_group() is only called if dev->iommu_group is NULL, so iommu_group_get() always returns NULL. Remove this test and just allocate a group. Call generic_device_group() for this like the other drivers. Signed-off-by: Jason Gunthorpe <[email protected]> Tested-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 44c026a commit 5f64897

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/fsl_pamu_domain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ static struct iommu_group *fsl_pamu_device_group(struct device *dev)
437437
if (dev_is_pci(dev))
438438
group = get_pci_device_group(to_pci_dev(dev));
439439
else if (of_get_property(dev->of_node, "fsl,liodn", &len))
440-
group = get_device_iommu_group(dev);
440+
return generic_device_group(dev);
441441

442442
return group;
443443
}

0 commit comments

Comments
 (0)