]> Git Repo - J-linux.git/commitdiff
wifi: ath10k: Use iommu_paging_domain_alloc()
authorLu Baolu <[email protected]>
Mon, 10 Jun 2024 08:55:44 +0000 (16:55 +0800)
committerWill Deacon <[email protected]>
Thu, 4 Jul 2024 13:09:33 +0000 (14:09 +0100)
An iommu domain is allocated in ath10k_fw_init() and is attached to
ar_snoc->fw.dev in the same function. Use iommu_paging_domain_alloc() to
make it explicit.

Signed-off-by: Lu Baolu <[email protected]>
Acked-by: Jeff Johnson <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Will Deacon <[email protected]>
drivers/net/wireless/ath/ath10k/snoc.c

index 8530550cf5df777b03000a61e01b02c4c7fc9263..0fe47d51013c7cb296a6e6b5483cde867929768b 100644 (file)
@@ -1635,10 +1635,10 @@ static int ath10k_fw_init(struct ath10k *ar)
 
        ar_snoc->fw.dev = &pdev->dev;
 
-       iommu_dom = iommu_domain_alloc(&platform_bus_type);
-       if (!iommu_dom) {
+       iommu_dom = iommu_paging_domain_alloc(ar_snoc->fw.dev);
+       if (IS_ERR(iommu_dom)) {
                ath10k_err(ar, "failed to allocate iommu domain\n");
-               ret = -ENOMEM;
+               ret = PTR_ERR(iommu_dom);
                goto err_unregister;
        }
 
This page took 0.064704 seconds and 4 git commands to generate.