RDMA/usnic: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 12:19:59 +0000 (13:19 +0100)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 8 Apr 2022 17:12:12 +0000 (14:12 -0300)
commitd9539fb7c21ef5f47db0aeed0c32588479e32184
treec418608e3e7c035c1880bb33f15ad3ff45c447ca
parent4302005f07d2607b1122bd2bc9226e9d1a0595ac
RDMA/usnic: Stop using iommu_present()

Even if an IOMMU might be present for some PCI segment in the system,
that doesn't necessarily mean it provides translation for the device(s)
we care about. Replace iommu_present() with a more appropriate check at
probe time, and garbage-collect the resulting empty init function.

Link: https://lore.kernel.org/r/f707b4248e1d33b6d2c7f1d7c94febb802cf9890.1649161199.git.robin.murphy@arm.com
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/usnic/usnic_ib_main.c
drivers/infiniband/hw/usnic/usnic_uiom.c
drivers/infiniband/hw/usnic/usnic_uiom.h