diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2020-01-15 15:52:38 +0300 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-15 19:30:28 +0300 |
commit | 5a4549fd790500d7db94b7d2af6d60cee42110c3 (patch) | |
tree | eaffe991a923ec4c77cec99e46f71f7f7868814b /include/linux/pci-ats.h | |
parent | 92c1d360dcda0ebd49253c0899bfeeb117be91fe (diff) | |
download | linux-5a4549fd790500d7db94b7d2af6d60cee42110c3.tar.xz |
PCI/ATS: Add PASID stubs
The SMMUv3 driver, which may be built without CONFIG_PCI, will soon gain
PASID support. Partially revert commit c6e9aefbf9db ("PCI/ATS: Remove
unused PRI and PASID stubs") to re-introduce the PASID stubs, and avoid
adding more #ifdefs to the SMMU driver.
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'include/linux/pci-ats.h')
-rw-r--r-- | include/linux/pci-ats.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/pci-ats.h b/include/linux/pci-ats.h index 5d62e78946a3..d08f0869f121 100644 --- a/include/linux/pci-ats.h +++ b/include/linux/pci-ats.h @@ -33,6 +33,9 @@ void pci_disable_pasid(struct pci_dev *pdev); int pci_pasid_features(struct pci_dev *pdev); int pci_max_pasids(struct pci_dev *pdev); #else /* CONFIG_PCI_PASID */ +static inline int pci_enable_pasid(struct pci_dev *pdev, int features) +{ return -EINVAL; } +static inline void pci_disable_pasid(struct pci_dev *pdev) { } static inline int pci_pasid_features(struct pci_dev *pdev) { return -EINVAL; } static inline int pci_max_pasids(struct pci_dev *pdev) |