bnx2x: Missing rmb when waiting for FW response
authorEilon Greenstein <eilong@broadcom.com>
Thu, 22 Jan 2009 06:01:29 +0000 (06:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Jan 2009 21:47:12 +0000 (13:47 -0800)
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>
drivers/net/bnx2x_main.c

index 71fbf2dbda3b816258fcd4d80bdfbdd897cf3bab..f71b8a5872b319c8c1d9ed574b023d3815e96eb3 100644 (file)
@@ -6622,6 +6622,7 @@ static int bnx2x_stop_leading(struct bnx2x *bp)
                }
                cnt--;
                msleep(1);
+               rmb(); /* Refresh the dsb_sp_prod */
        }
        bp->state = BNX2X_STATE_CLOSING_WAIT4_UNLOAD;
        bp->fp[0].state = BNX2X_FP_STATE_CLOSED;