WSL2-Linux-Kernel/drivers/pci
Marc Zyngier a477b9cd37 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 <ard.biesheuvel@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
[bhelgaas: folded in fix for conflict with 52354b9d1f ("PCI: Remove
__pci_dev_reset() and pci_dev_reset()")]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: stable@vger.kernel.org	# 4.11: 52354b9d1f46: PCI: Remove __pci_dev_reset() and pci_dev_reset()
Cc: stable@vger.kernel.org	# 4.11
2017-08-01 20:11:02 -05:00
..
dwc Merge branch 'pci/host-qcom' into next 2017-07-04 11:00:57 -05:00
endpoint PCI: endpoint: Select CRC32 to fix test build error 2017-06-12 15:46:13 -05:00
host PCI: rockchip: Check for pci_scan_root_bus_bridge() failure correctly 2017-07-12 12:50:11 -05:00
hotplug Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
pcie Merge branch 'pm-pci' 2017-07-14 13:15:49 +02:00
switch Merge branch 'pci/switchtec' into next 2017-07-02 18:51:10 -05:00
Kconfig PCI: Provide Kconfig option for lockless config space accessors 2017-06-28 22:32:56 +02:00
Makefile PCI: Build setup-irq.o on all arches 2017-07-02 16:14:27 -05:00
access.c PCI: Provide Kconfig option for lockless config space accessors 2017-06-28 22:32:56 +02:00
ats.c PCI: Restore PRI and PASID state after Function-Level Reset 2017-05-30 15:40:50 -05:00
bus.c
ecam.c
host-bridge.c
hotplug-pci.c
htirq.c
iov.c PCI: Protect pci_driver->sriov_configure() usage with device_lock() 2017-06-14 17:41:19 -05:00
irq.c pci-v4.12-changes 2017-05-08 19:03:25 -07:00
mmap.c
msi.c pci-v4.13-changes 2017-07-08 15:51:57 -07:00
of.c
pci-acpi.c PM / core: Drop run_wake flag from struct dev_pm_info 2017-06-28 01:52:52 +02:00
pci-driver.c Merge branch 'pm-pci' 2017-07-14 13:15:49 +02:00
pci-label.c pci-v4.13-changes 2017-07-08 15:51:57 -07:00
pci-mid.c PCI / PM: Simplify device wakeup settings code 2017-06-28 01:52:45 +02:00
pci-stub.c
pci-sysfs.c Merge branch 'pci/virtualization' into next 2017-07-03 08:00:29 -05:00
pci.c PCI: Add pci_reset_function_locked() 2017-08-01 20:11:02 -05:00
pci.h Merge branch 'pm-pci' 2017-07-14 13:15:49 +02:00
probe.c Merge branch 'pci/irq-fixups' into next 2017-07-03 08:00:29 -05:00
proc.c
quirks.c Merge branch 'pci/virtualization' into next 2017-07-03 08:00:29 -05:00
remove.c
rom.c
search.c
setup-bus.c
setup-irq.c PCI: Add pci_assign_irq() function and have pci_fixup_irqs() use it 2017-07-02 16:14:28 -05:00
setup-res.c
slot.c
syscall.c
vc.c
vpd.c
xen-pcifront.c