bge: Always configure MII mode register
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 18 Aug 2012 03:15:44 +0000 (11:15 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 18 Aug 2012 03:15:44 +0000 (11:15 +0800)
sys/dev/netif/bge/if_bge.c

index c0ed897..cd6d159 100644 (file)
@@ -2855,6 +2855,10 @@ bge_reset(struct bge_softc *sc)
                CSR_WRITE_4(sc, BGE_SERDES_CFG, serdescfg);
        }
 
                CSR_WRITE_4(sc, BGE_SERDES_CFG, serdescfg);
        }
 
+       CSR_WRITE_4(sc, BGE_MI_MODE,
+           sc->bge_mi_mode & ~BGE_MIMODE_AUTOPOLL);
+       DELAY(80);
+
        /* XXX: Broadcom Linux driver. */
        if ((sc->bge_flags & BGE_FLAG_PCIE) &&
            sc->bge_chipid != BGE_CHIPID_BCM5750_A0 &&
        /* XXX: Broadcom Linux driver. */
        if ((sc->bge_flags & BGE_FLAG_PCIE) &&
            sc->bge_chipid != BGE_CHIPID_BCM5750_A0 &&