summaryrefslogtreecommitdiffstats
path: root/sys/dev/bm
diff options
context:
space:
mode:
authornwhitehorn <nwhitehorn@FreeBSD.org>2011-05-12 14:27:28 +0000
committernwhitehorn <nwhitehorn@FreeBSD.org>2011-05-12 14:27:28 +0000
commitf9ee184b6eda372188d5200c4050d276d4b40472 (patch)
tree4a1a47213c37b398a37d238903b64d8cba98f24b /sys/dev/bm
parentc7f911d054f834b624d062972b1eebddaf9dcfe3 (diff)
downloadFreeBSD-src-f9ee184b6eda372188d5200c4050d276d4b40472.zip
FreeBSD-src-f9ee184b6eda372188d5200c4050d276d4b40472.tar.gz
Remove some hacks to handle strange behavior of LXT 970 PHYs now better
handled in miibus after r221812. Thanks to marius@ for piecing this together!
Diffstat (limited to 'sys/dev/bm')
-rw-r--r--sys/dev/bm/if_bm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sys/dev/bm/if_bm.c b/sys/dev/bm/if_bm.c
index 481d7cb..1977f92 100644
--- a/sys/dev/bm/if_bm.c
+++ b/sys/dev/bm/if_bm.c
@@ -1130,21 +1130,11 @@ bm_chip_setup(struct bm_softc *sc)
{
uint16_t reg;
uint16_t *eaddr_sect;
- struct mii_data *mii;
- struct mii_softc *miisc;
eaddr_sect = (uint16_t *)(sc->sc_enaddr);
dbdma_stop(sc->sc_txdma);
dbdma_stop(sc->sc_rxdma);
- /* Reset MII */
- mii = device_get_softc(sc->sc_miibus);
- LIST_FOREACH(miisc, &mii->mii_phys, mii_list) {
- PHY_RESET(miisc);
- PHY_WRITE(miisc, MII_BMCR, PHY_READ(miisc, MII_BMCR) &
- ~BMCR_ISO);
- }
-
/* Reset chip */
CSR_WRITE_2(sc, BM_RX_RESET, 0x0000);
CSR_WRITE_2(sc, BM_TX_RESET, 0x0001);
OpenPOWER on IntegriCloud