[PATCH v2 10/11] PCI/ATS: Export pci_enable_pri() and pci_reset_pri()

From: Nicolin Chen

Date: Thu May 28 2026 - 04:11:00 EST


From: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>

The SMMUv3 driver, which is tristate, calls pci_enable_pri() and
pci_reset_pri() from its probe path. Export them so the driver can be
built as a module.

Link: https://lore.kernel.org/iommu/20201112125519.3987595-9-jean-philippe@xxxxxxxxxx/
Acked-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@xxxxxxxxxxxxxxx>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@xxxxxxxxxx>
[nicolinc: drop stale or already-exported APIs]
Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx>
---
drivers/pci/ats.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/pci/ats.c b/drivers/pci/ats.c
index ec6c8dbdc5e9c..c844c0cee3cb7 100644
--- a/drivers/pci/ats.c
+++ b/drivers/pci/ats.c
@@ -266,6 +266,7 @@ int pci_enable_pri(struct pci_dev *pdev, u32 reqs)

return 0;
}
+EXPORT_SYMBOL_GPL(pci_enable_pri);

/**
* pci_disable_pri - Disable PRI capability
@@ -345,6 +346,7 @@ int pci_reset_pri(struct pci_dev *pdev)

return 0;
}
+EXPORT_SYMBOL_GPL(pci_reset_pri);

/**
* pci_prg_resp_pasid_required - Return PRG Response PASID Required bit
--
2.43.0