]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: qat - stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 12:25:11 +0000 (13:25 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 Apr 2022 08:34:25 +0000 (16:34 +0800)
commit6918340759bba6ca8f9ddc74af67ae97e00a3b08
treeba831c1a4a062ded261ab8d6c3a638f13b4cf08d
parent857a6ab820559b38a28174f9e3e3a898bc17aa7f
crypto: qat - 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
we care about. Replace iommu_present() with a more appropriate check.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_sriov.c