diff options
| -rw-r--r-- | drivers/pci/pci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index f0d68066c726..3ff0c3c18276 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
| @@ -4170,6 +4170,14 @@ int __pci_reset_function_locked(struct pci_dev *dev) | |||
| 4170 | 4170 | ||
| 4171 | might_sleep(); | 4171 | might_sleep(); |
| 4172 | 4172 | ||
| 4173 | /* | ||
| 4174 | * A reset method returns -ENOTTY if it doesn't support this device | ||
| 4175 | * and we should try the next method. | ||
| 4176 | * | ||
| 4177 | * If it returns 0 (success), we're finished. If it returns any | ||
| 4178 | * other error, we're also finished: this indicates that further | ||
| 4179 | * reset mechanisms might be broken on the device. | ||
| 4180 | */ | ||
| 4173 | rc = pci_dev_specific_reset(dev, 0); | 4181 | rc = pci_dev_specific_reset(dev, 0); |
| 4174 | if (rc != -ENOTTY) | 4182 | if (rc != -ENOTTY) |
| 4175 | return rc; | 4183 | return rc; |
