diff options
author | Chunyan Zhang <chunyan.zhang@unisoc.com> | 2023-03-31 11:31:24 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2023-03-31 10:13:02 +0200 |
commit | 816c698c052471f525bea92ff0aeeda8a5844a85 (patch) | |
tree | 8dd59abafac4f7cc013255c912b913579f050f1b /drivers/iommu/omap-iommu.c | |
parent | 9afea57384d4ae7b2034593eac7fa76c7122762a (diff) |
iommu/sprd: Add support for reattaching an existing domain
This IOMMU driver should allow a domain to be attached more than once.
If IOMMU is reattaching to the same domain which is attached, there's
nothing to be done.
If reattching to a previously-used domain, do not alloc DMA buffer
again which stores address mapping table to avoid memory leak.
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20230331033124.864691-3-zhang.lyra@gmail.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/omap-iommu.c')
0 files changed, 0 insertions, 0 deletions