On Sat, Jul 04, 2020 at 05:09:57PM +0800, Hillf Danton wrote:
> > + group = iommu_group_get_for_dev(dev);
> > + if (!IS_ERR(group)) {
>
> Typo?
Yes, fortunatly it gets fixed again in patch 11 of this series.
Regards,
Joerg
___
iommu mailin
On Wed, 29 Apr 2020 15:36:45 +0200 Joerg Roedel wrote:
>
> +static int __iommu_probe_device(struct device *dev)
> +{
> + const struct iommu_ops *ops = dev->bus->iommu_ops;
> + struct iommu_device *iommu_dev;
> + struct iommu_group *group;
> + int ret;
> +
> + iommu_dev = ops-
From: Joerg Roedel
Add call-backs to 'struct iommu_ops' as an alternative to the
add_device() and remove_device() call-backs, which will be removed when
all drivers are converted.
The new call-backs will not setup IOMMU groups and domains anymore,
so also add a probe_finalize() call-back where t