aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_main.c
diff options
context:
space:
mode:
authorEilon Greenstein <eilong@broadcom.com>2009-01-22 01:01:29 -0500
committerDavid S. Miller <davem@davemloft.net>2009-01-22 16:47:12 -0500
commit5650d9d4cbf3898d3f9725ccad5dfca6bc086324 (patch)
tree86b799863ab15494969bad096ada0fbb3eabca3b /drivers/net/bnx2x_main.c
parent7cde1c8b79f913a0158bae4f4c612de2cb98e7e4 (diff)
bnx2x: Missing rmb when waiting for FW response
Waiting for the FW to response requires a memory barrier Signed-off-by: Michal Kalderon <michals@broadcom.com> 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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/bnx2x_main.c b/drivers/net/bnx2x_main.c
index 71fbf2dbda3b..f71b8a5872b3 100644
--- a/drivers/net/bnx2x_main.c
+++ b/drivers/net/bnx2x_main.c
@@ -6622,6 +6622,7 @@ static int bnx2x_stop_leading(struct bnx2x *bp)
6622 } 6622 }
6623 cnt--; 6623 cnt--;
6624 msleep(1); 6624 msleep(1);
6625 rmb(); /* Refresh the dsb_sp_prod */
6625 } 6626 }
6626 bp->state = BNX2X_STATE_CLOSING_WAIT4_UNLOAD; 6627 bp->state = BNX2X_STATE_CLOSING_WAIT4_UNLOAD;
6627 bp->fp[0].state = BNX2X_FP_STATE_CLOSED; 6628 bp->fp[0].state = BNX2X_FP_STATE_CLOSED;