aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_main.c
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-07-21 01:47:30 -0400
committerDavid S. Miller <davem@davemloft.net>2009-07-21 14:18:27 -0400
commiteb8da205a6cac953a46a247b8dd19505eba944e2 (patch)
treec8cdbcdeaadd2fe7124cd20b89c028c27d05ec7e /drivers/net/bnx2x_main.c
parentfd4ef40d5977e1c226e9cd9659398e82cc4a1e85 (diff)
bnx2x: Fan failure early detection
Check if fan failure happened before the driver was loaded and notify the user Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_main.c')
-rw-r--r--drivers/net/bnx2x_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index ae8b7b517ea8..d946c9ea3f29 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -5185,6 +5185,11 @@ static void bnx2x_nic_init(struct bnx2x *bp, u32 load_code)
5185 mmiowb(); 5185 mmiowb();
5186 5186
5187 bnx2x_int_enable(bp); 5187 bnx2x_int_enable(bp);
5188
5189 /* Check for SPIO5 */
5190 bnx2x_attn_int_deasserted0(bp,
5191 REG_RD(bp, MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 + BP_PORT(bp)*4) &
5192 AEU_INPUTS_ATTN_BITS_SPIO5);
5188} 5193}
5189 5194
5190/* end of nic init */ 5195/* end of nic init */