]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1,PCI: Allow bus reset while probing
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Fri, 31 Aug 2018 17:34:14 +0000 (10:34 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 12 Sep 2018 02:44:52 +0000 (21:44 -0500)
commit5d798563daa33d8863ea39c7dd307e8b0d02c062
tree6dfffd4d832b98bba39ab0f87e67e8e39951043c
parentbe08c8ce5d95736670377ce1df9a9c3a7fc14222
IB/hfi1,PCI: Allow bus reset while probing

Calling into the new API to reset the secondary bus results in a deadlock.
This occurs because the device/bus is already locked at probe time.
Reverting back to the old behavior while the API is improved.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=200985
Fixes: 6eed43cb65b5 ("PCI: Rename pci_try_reset_bus() to pci_reset_bus()")
Fixes: f5f6d2c3d5b3 ("IB/hfi1: Use pci_try_reset_bus() for initiating PCI Secondary Bus Reset")
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Cc: Sinan Kaya <okaya@codeaurora.org>
drivers/infiniband/hw/hfi1/pcie.c
drivers/pci/pci.c
include/linux/pci.h