summaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-04-14 21:11:25 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-04-20 08:53:51 -0500
commita60a2b73ba69abca26653fff157b0fd8947bc498 (patch)
tree6706049eb35599d6fbf49577f7ca451c66b757f2 /include/linux/pci.h
parent0e7df22401a3dfd403b26dea62dd00e0598b538b (diff)
downloadop-kernel-dev-a60a2b73ba69abca26653fff157b0fd8947bc498.zip
op-kernel-dev-a60a2b73ba69abca26653fff157b0fd8947bc498.tar.gz
PCI: Export pcie_flr()
Currently we opencode the FLR sequence in lots of place; export a core helper instead. We split out the probing for FLR support as all the non-core callers already know their hardware. Note that in the new pci_has_flr() function the quirk check has been moved before the capability check as there is no point in reading the capability in this case. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 22cad2c..a9ff99c 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1054,6 +1054,7 @@ int pcie_get_mps(struct pci_dev *dev);
int pcie_set_mps(struct pci_dev *dev, int mps);
int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed,
enum pcie_link_width *width);
+void pcie_flr(struct pci_dev *dev);
int __pci_reset_function(struct pci_dev *dev);
int __pci_reset_function_locked(struct pci_dev *dev);
int pci_reset_function(struct pci_dev *dev);
OpenPOWER on IntegriCloud