habanalabs: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Mon, 11 Apr 2022 12:36:32 +0000 (13:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 May 2022 19:01:18 +0000 (21:01 +0200)
commit77c97a7ea85f3a1f8d2c3bf54869c0b6638519c7
tree482297b10151cab6d63ef5ee173efe52545559ff
parent0ff1d6f8f55eafadea0a5ca25d0eaf3571813c70
habanalabs: 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>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/habanalabs/common/debugfs.c