From: Yaniv Rosner Date: Tue, 14 Jun 2011 01:33:19 +0000 (+0000) Subject: bnx2x: do not call link update without HW notification X-Git-Tag: v2.6.39-400.9.0~615^2~56 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c5567b63037032e5ff31f3c5453ae693327d6545;p=users%2Fjedix%2Flinux-maple.git bnx2x: do not call link update without HW notification Signed-off-by: Yaniv Rosner Signed-off-by: Vladislav Zolotarov Signed-off-by: Eilon Greenstein Signed-off-by: David S. Miller (cherry picked from commit 361c391e2339eb8d479feec9042ec6e822593350) --- diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index bc358da995682..c0c76d560ae26 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c @@ -2848,9 +2848,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? */ }