> From: Jason Gunthorpe <jgg@xxxxxxxxxx> > Sent: Wednesday, August 9, 2023 1:27 AM > > This is preparation for the next patch. > > Each iommu driver is associated with a 'struct iommu_device' handle. Pass > in the iommu_device to bus_iommu_probe() and all the way through to > probe_iommu_group(). > > omap is weird, it has a whole bunch of iommu devices that it creates a > struct omap_iommu for, but it only registers some of then with the s/then/them/ > subsystem. In the case it doesn't register then it has to open code the > call to bus_iommu_probe() as it's omap_iommu_probe_device() function is > sensitive. Pass in the unregistered iommu_device struct and move this code > into an else block since there is no sense in calling bus_iommu_probe() > twice in a row. > > Signed-off-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>