]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:25 +0000 (22:04 -0800)
commit62146db4bc682367f7d86dd5a403349b46d366bd
treee9488a35fd428aa1b311b19b140a151bb087e96f
parent2f88589c6e7471ecd452d6036c4cdd3e86b04314
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>
Orabug: 25394529
(cherry picked from commit 9d7dbf0604d37f8cae0c6d184a646037636a8b30)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c