fm10k: check if PCIe link is restored
authorJacob Keller <jacob.e.keller@intel.com>
Tue, 7 Jun 2016 23:08:58 +0000 (16:08 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 20 Jul 2016 22:22:15 +0000 (15:22 -0700)
commit9d7dbf0604d37f8cae0c6d184a646037636a8b30
treee2190c3fbcff8ee43426e2eea110179a2d4fb272
parent0d63a8f50e7a7810b0631cd8ea66d44dafb215e6
fm10k: check if PCIe link is restored

Sometimes, a VF driver will lose PCIe address access, such as due to
a PF FLR event. In fm10k_detach_subtask, poll and check whether the
PCIe register space is active again and restore the device when it has.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c