diff options
author | Marc Zyngier <[email protected]> | 2017-08-01 20:11:02 -0500 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2017-08-01 20:11:02 -0500 |
commit | a477b9cd37aa81a490dfa3265b7ff4f2c5a92463 (patch) | |
tree | 267e7a1f7da0e629dc7f8b5829f0afced68c41cf /lib/mpi/mpi-internal.h | |
parent | 16f73eb02d7e1765ccab3d2018e0bd98eb93d973 (diff) |
PCI: Add pci_reset_function_locked()
The implementation of PCI workarounds may require that the device is reset
from its probe function. This implies that the PCI device lock is already
held, and makes calling pci_reset_function() impossible (since it will
itself try to take that lock).
Add pci_reset_function_locked(), which is the equivalent of
pci_reset_function(), except that it requires the PCI device lock to be
already held by the caller.
Tested-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
[bhelgaas: folded in fix for conflict with 52354b9d1f46 ("PCI: Remove
__pci_dev_reset() and pci_dev_reset()")]
Signed-off-by: Bjorn Helgaas <[email protected]>
Cc: [email protected] # 4.11: 52354b9d1f46: PCI: Remove __pci_dev_reset() and pci_dev_reset()
Cc: [email protected] # 4.11
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions