diff options
author | Christoph Hellwig <hch@lst.de> | 2017-04-14 21:11:25 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-04-20 08:53:51 -0500 |
commit | a60a2b73ba69abca26653fff157b0fd8947bc498 (patch) | |
tree | 6706049eb35599d6fbf49577f7ca451c66b757f2 /include/linux | |
parent | 0e7df22401a3dfd403b26dea62dd00e0598b538b (diff) | |
download | linux-a60a2b73ba69abca26653fff157b0fd8947bc498.tar.gz linux-a60a2b73ba69abca26653fff157b0fd8947bc498.tar.bz2 linux-a60a2b73ba69abca26653fff157b0fd8947bc498.zip |
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')
-rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 22cad2c66d59..a9ff99c91601 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); |