Skip to contentSkip to conversation

bnx2x: do not call link update without HW notification

PATCH Applied Vlad Zolotarov 1 participant 1 message Jun 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 7/24 bnx2x: do not call link update without HW notification

From: Yaniv Rosner <[email protected]>

---
 drivers/net/bnx2x/bnx2x_main.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
drivers/net/bnx2x/bnx2x_main.c +8 -2
index e6439a3..0e8d302 100644
@@ -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