diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2018-02-27 21:14:08 +0100 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-02-27 21:14:08 +0100 |
commit | 91295d79d65892eabd02a2a75fd4ac88197d17a1 (patch) | |
tree | c114b86bcb945a168eafef9209f26ec7c17feb2b /include | |
parent | PCI: Protect restore with device lock to be consistent (diff) | |
download | linux-91295d79d65892eabd02a2a75fd4ac88197d17a1.tar.xz linux-91295d79d65892eabd02a2a75fd4ac88197d17a1.zip |
PCI: Handle FLR failure and allow other reset types
pci_flr_wait() and pci_af_flr() functions assume graceful return even
though the device is inaccessible under error conditions.
Return -ENOTTY in error cases so that __pci_reset_function_locked() can
try other reset types if AF_FLR/FLR reset fails.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 024a1beda008..af75d9d76189 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1082,7 +1082,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 pcie_flr(struct pci_dev *dev); int __pci_reset_function_locked(struct pci_dev *dev); int pci_reset_function(struct pci_dev *dev); int pci_reset_function_locked(struct pci_dev *dev); |