From: Eilon Greenstein Date: Tue, 21 Jul 2009 05:47:30 +0000 (+0000) Subject: bnx2x: Fan failure early detection X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=eb8da205a6cac953a46a247b8dd19505eba944e2;p=openwrt%2Fstaging%2Fblogic.git bnx2x: Fan failure early detection Check if fan failure happened before the driver was loaded and notify the user Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller --- 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) mmiowb(); bnx2x_int_enable(bp); + + /* Check for SPIO5 */ + bnx2x_attn_int_deasserted0(bp, + REG_RD(bp, MISC_REG_AEU_AFTER_INVERT_1_FUNC_0 + BP_PORT(bp)*4) & + AEU_INPUTS_ATTN_BITS_SPIO5); } /* end of nic init */