Skip to content

Commit ef50d41

Browse files
LuBaoluwilldeacon
authored andcommitted
wifi: ath11k: Use iommu_paging_domain_alloc()
An iommu domain is allocated in ath11k_ahb_fw_resources_init() and is attached to ab_ahb->fw.dev in the same function. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Acked-by: Jeff Johnson <quic_jjohnson@quicinc.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20240610085555.88197-12-baolu.lu@linux.intel.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent d5b7485 commit ef50d41

File tree

1 file changed

+3
-3
lines changed
  • drivers/net/wireless/ath/ath11k

1 file changed

+3
-3
lines changed

drivers/net/wireless/ath/ath11k/ahb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,10 +1001,10 @@ static int ath11k_ahb_fw_resources_init(struct ath11k_base *ab)
10011001

10021002
ab_ahb->fw.dev = &pdev->dev;
10031003

1004-
iommu_dom = iommu_domain_alloc(&platform_bus_type);
1005-
if (!iommu_dom) {
1004+
iommu_dom = iommu_paging_domain_alloc(ab_ahb->fw.dev);
1005+
if (IS_ERR(iommu_dom)) {
10061006
ath11k_err(ab, "failed to allocate iommu domain\n");
1007-
ret = -ENOMEM;
1007+
ret = PTR_ERR(iommu_dom);
10081008
goto err_unregister;
10091009
}
10101010

0 commit comments

Comments
 (0)