]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited8a9378d86445a6e62193e8fc87e46c8da3caff
tree7586c8fe0532e4c395c3da5259c6a6cdfc4546ec
parentedfb371164877f663ca6a661ce9226ddca391b29
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