diff options
author | Jason Gunthorpe <[email protected]> | 2024-10-28 09:37:59 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2024-10-29 10:06:17 +0100 |
commit | 541b967f5a9163b5c36b68599f1141114fbb26fa (patch) | |
tree | b29f6a3a4e9445106cb5d12d229e83fafa54a58b /drivers/fpga/fpga-mgr.c | |
parent | f6440fcc9c7b7aaad2e52830ab83fa71990f76ff (diff) |
iommu: Refactor __iommu_domain_alloc()
Following patch will introduce iommu_paging_domain_alloc_flags() API.
Hence move domain init code to separate function so that it can be
reused.
Also move iommu_get_dma_cookie() setup iommu_setup_default_domain() as
it is required in DMA API mode only.
Signed-off-by: Jason Gunthorpe <[email protected]>
[Split the patch and added description - Vasant]
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Yi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions