mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-04 04:04:19 +00:00
remoteproc: Use iommu_paging_domain_alloc()
An iommu domain is allocated in rproc_enable_iommu() and is attached to rproc->dev.parent in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org> Acked-by: Beleswar Padhi <b-padhi@ti.com> Link: https://lore.kernel.org/r/20241009041147.28391-2-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
parent
69e5a17511
commit
fae93d8da6
@ -109,10 +109,10 @@ static int rproc_enable_iommu(struct rproc *rproc)
|
||||
return 0;
|
||||
}
|
||||
|
||||
domain = iommu_domain_alloc(dev->bus);
|
||||
if (!domain) {
|
||||
domain = iommu_paging_domain_alloc(dev);
|
||||
if (IS_ERR(domain)) {
|
||||
dev_err(dev, "can't alloc iommu domain\n");
|
||||
return -ENOMEM;
|
||||
return PTR_ERR(domain);
|
||||
}
|
||||
|
||||
iommu_set_fault_handler(domain, rproc_iommu_fault, rproc);
|
||||
|
Loading…
Reference in New Issue
Block a user