iommu/vt-d: Use pci_ats_supported()
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Wed, 20 May 2020 15:22:03 +0000 (17:22 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 27 May 2020 12:35:41 +0000 (14:35 +0200)
commitda656a042568ffbc30881c43a832277f275eea4a
tree71e61601cc1000350a6ed584bb5ab63168f85269
parent0b2527a654190a987d45e2cc9e5c6946eea11fc5
iommu/vt-d: Use pci_ats_supported()

The pci_ats_supported() helper checks if a device supports ATS and is
allowed to use it. By checking the ATS capability it also integrates the
pci_ats_disabled() check from pci_ats_init(). Simplify the vt-d checks.

Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20200520152201.3309416-5-jean-philippe@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel-iommu.c