]> 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)
commitde93897edc69a75dfa6d8c16431e69eaa6989a3e
tree7586c8fe0532e4c395c3da5259c6a6cdfc4546ec
parent16ce2c831abf74ae9cc2b77e5bb5593ecb435446
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