]> git.baikalelectronics.ru Git - kernel.git/commit
i40evf: Add additional check for reset
authorMitch Williams <mitch.a.williams@intel.com>
Thu, 10 Mar 2016 22:59:49 +0000 (14:59 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 5 Apr 2016 19:27:09 +0000 (12:27 -0700)
commit889b055f35d50b60442fa485dfba10c832f6815d
tree85f4bba499b7e15dbb6877204e8830d0ed75f89d
parente1a0b84cd56c08f116ec6e304f5ea2ecdd8fb6a6
i40evf: Add additional check for reset

If the driver happens to read a register during the time in which the
device is undergoing reset, it will receive a value of 0xdeadbeef
instead of a valid value. Unfortunately, the driver may misinterpret
this as a valid value, especially if it's just looking for individual
bits.

Add an explicit check for this value when we are looking for admin queue
errors, and trigger reset recovery if we find it.

Signed-off-by: Mitch Williams <mitch.a.williams@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c