Re: [PATCH v3 07/34] iommu: Add probe_device() and release_device() call-backs

2020-07-09 Thread Joerg Roedel
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

[PATCH v3 07/34] iommu: Add probe_device() and release_device() call-backs

2020-04-29 Thread Joerg Roedel
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