ixgbe: add status reg reads to ixgbe_check_remove
authorPaul Greenwalt <paul.greenwalt@intel.com>
Mon, 12 Mar 2018 13:22:55 +0000 (09:22 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 23 Mar 2018 21:18:26 +0000 (14:18 -0700)
commit1aa37845f7601ce9159cd08fdf381cfb5f494c12
tree7586c8fe0532e4c395c3da5259c6a6cdfc4546ec
parentf452518c982e57538e6d49da0a2c80eef22087ab
ixgbe: add status reg reads to ixgbe_check_remove

Add status register reads and delay between reads to ixgbe_check_remove.
Registers can read 0xFFFFFFFF during PCI reset, which causes the driver
to remove the adapter. The additional status register reads can reduce the
chance of this race condition.

If the status register is not 0xFFFFFFFF, then ixgbe_check_remove returns
the value of the register being read.

Signed-off-by: Paul Greenwalt <paul.greenwalt@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.h
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c