diff options
| author | Nicolin Chen <nicolinc@nvidia.com> | 2025-12-16 00:42:17 +0300 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-01-10 12:26:43 +0300 |
| commit | 4a73abb965b7546864957d2bde428f1e72bc3bb5 (patch) | |
| tree | 85cf533a8de61858e86a2bdfc10f09dc2c26c800 /include/linux | |
| parent | 5d5388b0e190b6decb964d3711473b7010bf1f6f (diff) | |
| download | linux-4a73abb965b7546864957d2bde428f1e72bc3bb5.tar.xz | |
iommu: Tidy domain for iommu_setup_dma_ops()
This function can only be called on the default_domain. Trivally pass it
in. In all three existing cases, the default domain was just attached to
the device.
This avoids iommu_setup_dma_ops() calling iommu_get_domain_for_dev() that
will be used by external callers.
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Tested-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
