bnx2x: Restore appropriate delay during BMAC reset
authorYaniv Rosner <yaniv.rosner@broadcom.com>
Mon, 1 Nov 2010 05:32:25 +0000 (05:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Nov 2010 13:21:36 +0000 (06:21 -0700)
Fix delay during BMAC reset from 10usec to 1ms.

Signed-off-by: Yaniv Rosner <yanivr@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2x/bnx2x_link.c

index 2326774df843841315d783dfa6c53a073a2ef4b5..89b33e27f6145c4a624cb8c85eb8575e7002b1b3 100644 (file)
@@ -610,7 +610,7 @@ static u8 bnx2x_bmac_enable(struct link_params *params,
        /* reset and unreset the BigMac */
        REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_CLEAR,
                     (MISC_REGISTERS_RESET_REG_2_RST_BMAC0 << port));
-       udelay(10);
+       msleep(1);
 
        REG_WR(bp, GRCBASE_MISC + MISC_REGISTERS_RESET_REG_2_SET,
                     (MISC_REGISTERS_RESET_REG_2_RST_BMAC0 << port));