]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit97372a62e83bb1e4957768eae2b57860acb0c19a
treec418608e3e7c035c1880bb33f15ad3ff45c447ca
parent5c0e504f0fcc41c2039d02bfa281337269db59f1
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