bge: Add delays after enable RX/TX MAC
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 4 Dec 2013 12:07:30 +0000 (20:07 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 4 Dec 2013 12:07:30 +0000 (20:07 +0800)
Follows Broadcom's datasheet recommendation

Obtained-from: FreeBSD 241220

sys/dev/netif/bge/if_bge.c

index a0af20d..9f6f931 100644 (file)
@@ -3775,9 +3775,11 @@ bge_init(void *xsc)
                mode |= BGE_TXMODE_MBUF_LOCKUP_FIX;
        /* Turn on transmitter */
        CSR_WRITE_4(sc, BGE_TX_MODE, mode | BGE_TXMODE_ENABLE);
+       DELAY(100);
 
        /* Turn on receiver */
        BGE_SETBIT(sc, BGE_RX_MODE, BGE_RXMODE_ENABLE);
+       DELAY(10);
 
        /*
         * Set the number of good frames to receive after RX MBUF