iommu/mtk_iommu: Add an IOMMU_IDENTITIY_DOMAIN
authorJason Gunthorpe <jgg@nvidia.com>
Wed, 13 Sep 2023 13:43:51 +0000 (10:43 -0300)
committerJoerg Roedel <jroedel@suse.de>
Mon, 25 Sep 2023 09:41:02 +0000 (11:41 +0200)
commitb01b12573837f237cec13b9ddf8e5e623ee6f981
treedb32df6ad279aaa07412ba447a45383f8160fc88
parent666c9f1ef7fa9330ea041aba36658aeb48145846
iommu/mtk_iommu: Add an IOMMU_IDENTITIY_DOMAIN

This brings back the ops->detach_dev() code that commit
1b932ceddd19 ("iommu: Remove detach_dev callbacks") deleted and turns it
into an IDENTITY domain.

Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/18-v8-81230027b2fa+9d-iommu_all_defdom_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c