ixgbe: Add ability to double reset on failure to clear master enable
authorEmil Tantilov <emil.s.tantilov@intel.com>
Mon, 14 Feb 2011 08:45:13 +0000 (08:45 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Mar 2011 11:00:09 +0000 (03:00 -0800)
commita4297dc2f49d46d5452a948210be44442236e685
treebd1e121b13480179db21d5adc79b800dd0efe409
parent21cc5b4f7eb7b6de90588331b7d0edb246502f46
ixgbe: Add ability to double reset on failure to clear master enable

Double resets are required for recovery from certain error conditions.
Between resets, it is necessary to stall to allow time for any pending HW
events to complete. We use 1usec since that is what is needed for
ixgbe_disable_pcie_master(). The second reset then clears out any effects
of those events.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_82598.c
drivers/net/ixgbe/ixgbe_82599.c
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_type.h
drivers/net/ixgbe/ixgbe_x540.c