]> www.infradead.org Git - users/jedix/linux-maple.git/commit
fm10k: don't continue probe if PCI device not in normal IO state
authorJacob Keller <jacob.e.keller@intel.com>
Thu, 23 Jun 2016 20:31:01 +0000 (13:31 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:34 +0000 (22:04 -0800)
commit43a4ee3e6a74c2789e7abcccec11f96f7d39f05c
treea87e7af66112f1e3a470762a566c999ff60dcf27
parent88d17e2d8e60f7e35526ee5e164c350cd104aea1
fm10k: don't continue probe if PCI device not in normal IO state

In the event of an uncorrectable AER error occurring when the driver has
not loaded, the recovery routines are not done. This is done because
future loads of the driver may not be aware of the IO state and may not
be able to recover at all. In this case, when we next load the driver it
fails due to what appears to be a surprise remove event. Instead, add
a check to ensure that the device is in the normal IO state before
continuing to probe. This allows us to give a more descriptive message
of what is wrong.

Without this change, the driver will attempt to probe up to our first
call of .reset_hw() which will be unable to read registers and act as if
a surprise remove event occurred.

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 18095937cb1c66b8ff944de02cf04d1497008352)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c