bnx2x: do not call link update without HW notification
Subsystems (2)
PATCH 7/24 bnx2x: do not call link update without HW notification
From: Yaniv Rosner <[email protected]>
Signed-off-by Yaniv Rosner <[email protected]>
Signed-off-by Vladislav Zolotarov <[email protected]>
Signed-off-by Eilon Greenstein <[email protected]>
--- drivers/net/bnx2x/bnx2x_main.c | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-)
drivers/net/bnx2x/bnx2x_main.c +8 -2
@@ -2885,9 +2885,15 @@ static void bnx2x_attn_int_asserted(struct bnx2x *bp, u32 asserted)/* save nig interrupt mask */ nig_mask =REG_RD (bp, nig_int_mask_addr); -REG_WR (bp, nig_int_mask_addr,0 ); -bnx2x_link_attn (bp); +/* If nig_mask is not set, no need to call the update +* function. +*/ +if (nig_mask) { +REG_WR (bp, nig_int_mask_addr,0 ); + +bnx2x_link_attn (bp); + }/* handle unicore attn? */ }
Signature · 1 line
1.7.2.2