bnx2x: fix DMAE timeout according to hw specifications
authorDmitry Kravkov <dmitry@broadcom.com>
Sun, 22 May 2011 10:09:19 +0000 (10:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 May 2011 01:01:23 +0000 (21:01 -0400)
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_main.c

index fb23d575d6336b86c441d834dc930f1541d7da60..f7abebfa0f5d81f53476506fcdab1865bdc1162f 100644 (file)
@@ -571,7 +571,7 @@ static int bnx2x_issue_dmae_with_comp(struct bnx2x *bp,
                                      struct dmae_command *dmae)
 {
        u32 *wb_comp = bnx2x_sp(bp, wb_comp);
-       int cnt = CHIP_REV_IS_SLOW(bp) ? (400000) : 40;
+       int cnt = CHIP_REV_IS_SLOW(bp) ? (400000) : 4000;
        int rc = 0;
 
        DP(BNX2X_MSG_OFF, "data before [0x%08x 0x%08x 0x%08x 0x%08x]\n",