]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbb8b6befdb0d26a005a252e06d5fbd0677df35a5
treefeb8ab0e94f443ed532001a78aa18f4108e566e7
parentb5d8326ebd676f13ad7ce906773f228abb6205da
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