ixgbe: fix failing to log fan failures
authorDon Skidmore <donald.c.skidmore@intel.com>
Thu, 7 May 2009 10:39:54 +0000 (10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 7 May 2009 21:52:31 +0000 (14:52 -0700)
commitbf069c9726b592432ed646e72b910ac3c098d025
treefeb8ab0e94f443ed532001a78aa18f4108e566e7
parentdfa12f05f60eb23b1670f3a7756ed814f886a7fb
ixgbe: fix failing to log fan failures

We weren't logging the 82598AT fan failure if it occurred before (ixgbe_open)
as we hadn't sent up to catch the interrupt that event caused.

This patch checks for this failure in:
ixgbe_probe - So we can log the failure asap. We check right after we
set up the adapter->flags, which is when we know that we have a fan.
ixgbe_up_complete - To catch failures that may have happened between probe
and when we set up the interrupt that would normally detect the fan failure.

To enable all of this we need to initialize the adapter flag with
IXGBE_FLAG_FAN_FAIL_CAPABLE when the NIC contained a fan.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_main.c