powerpc/iommu: Remove iommu_del_device()
authorJason Gunthorpe <jgg@nvidia.com>
Tue, 16 May 2023 00:12:31 +0000 (21:12 -0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 16 May 2023 14:51:06 +0000 (00:51 +1000)
commitad593827db9b73f15eb65416ec975ec0311f773a
tree397650ed04c484509cd331d85e476a649dd7e340
parent8133a3f0aa66ed3d7d974c89ac6aca6fe6cec837
powerpc/iommu: Remove iommu_del_device()

Now that power calls iommu_device_register() and populates its groups
using iommu_ops->device_group it should not be calling
iommu_group_remove_device().

The core code owns the groups and all the other related iommu data, it
will clean it up automatically.

Remove the bus notifiers and explicit calls to
iommu_group_remove_device().

Fixes: a940904443e4 ("powerpc/iommu: Add iommu_ops to report capabilities and allow blocking domains")
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/0-v1-1421774b874b+167-ppc_device_group_jgg@nvidia.com
arch/powerpc/include/asm/iommu.h
arch/powerpc/kernel/iommu.c
arch/powerpc/platforms/powernv/pci.c
arch/powerpc/platforms/pseries/iommu.c