PCI: Wait for pending transactions to complete before 82599 FLR
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 22 Aug 2012 15:41:27 +0000 (09:41 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 23 Aug 2012 16:11:11 +0000 (10:11 -0600)
commit76b57c6700e56d146938ca9dc1d553557e940d9f
treec7bc8610faf614c6d707912cd666ac7beee2ed8b
parent59875ae489609b2267548dc85160c5f0f0c6f9d4
PCI: Wait for pending transactions to complete before 82599 FLR

Before initiating an FLR, we should wait for completion of any outstanding
non-posted requests.  See PCIe spec r3.0, sec 6.6.2.

This makes reset_intel_82599_sfp_virtfn() very similar to the generic
pcie_flr().  The only difference is that the 82599 doesn't report FLR
support in the VF Device Capability register.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/quirks.c