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

Prior to commit 1b932ceddd19 ("iommu: Remove detach_dev callbacks") the
sun50i_iommu_detach_device() function was being called by
ops->detach_dev().

This is an IDENTITY domain so convert sun50i_iommu_detach_device() into
sun50i_iommu_identity_attach() and a full IDENTITY domain and thus hook it
back up the same was as the old ops->detach_dev().

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