diff options
Diffstat (limited to 'drivers/pci/pci.c')
-rw-r--r-- | drivers/pci/pci.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index 0bc27e059019..0906599ebfde 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -1153,11 +1153,11 @@ pci_disable_device(struct pci_dev *dev) | |||
1153 | 1153 | ||
1154 | /** | 1154 | /** |
1155 | * pcibios_set_pcie_reset_state - set reset state for device dev | 1155 | * pcibios_set_pcie_reset_state - set reset state for device dev |
1156 | * @dev: the PCI-E device reset | 1156 | * @dev: the PCIe device reset |
1157 | * @state: Reset state to enter into | 1157 | * @state: Reset state to enter into |
1158 | * | 1158 | * |
1159 | * | 1159 | * |
1160 | * Sets the PCI-E reset state for the device. This is the default | 1160 | * Sets the PCIe reset state for the device. This is the default |
1161 | * implementation. Architecture implementations can override this. | 1161 | * implementation. Architecture implementations can override this. |
1162 | */ | 1162 | */ |
1163 | int __attribute__ ((weak)) pcibios_set_pcie_reset_state(struct pci_dev *dev, | 1163 | int __attribute__ ((weak)) pcibios_set_pcie_reset_state(struct pci_dev *dev, |
@@ -1168,7 +1168,7 @@ int __attribute__ ((weak)) pcibios_set_pcie_reset_state(struct pci_dev *dev, | |||
1168 | 1168 | ||
1169 | /** | 1169 | /** |
1170 | * pci_set_pcie_reset_state - set reset state for device dev | 1170 | * pci_set_pcie_reset_state - set reset state for device dev |
1171 | * @dev: the PCI-E device reset | 1171 | * @dev: the PCIe device reset |
1172 | * @state: Reset state to enter into | 1172 | * @state: Reset state to enter into |
1173 | * | 1173 | * |
1174 | * | 1174 | * |
@@ -2296,6 +2296,10 @@ static int pci_dev_reset(struct pci_dev *dev, int probe) | |||
2296 | down(&dev->dev.sem); | 2296 | down(&dev->dev.sem); |
2297 | } | 2297 | } |
2298 | 2298 | ||
2299 | rc = pci_dev_specific_reset(dev, probe); | ||
2300 | if (rc != -ENOTTY) | ||
2301 | goto done; | ||
2302 | |||
2299 | rc = pcie_flr(dev, probe); | 2303 | rc = pcie_flr(dev, probe); |
2300 | if (rc != -ENOTTY) | 2304 | if (rc != -ENOTTY) |
2301 | goto done; | 2305 | goto done; |
@@ -2779,6 +2783,11 @@ int __attribute__ ((weak)) pci_ext_cfg_avail(struct pci_dev *dev) | |||
2779 | return 1; | 2783 | return 1; |
2780 | } | 2784 | } |
2781 | 2785 | ||
2786 | void __weak pci_fixup_cardbus(struct pci_bus *bus) | ||
2787 | { | ||
2788 | } | ||
2789 | EXPORT_SYMBOL(pci_fixup_cardbus); | ||
2790 | |||
2782 | static int __init pci_setup(char *str) | 2791 | static int __init pci_setup(char *str) |
2783 | { | 2792 | { |
2784 | while (str) { | 2793 | while (str) { |