Author: nwhitehorn Date: Thu May 12 14:27:28 2011 New Revision: 221813 URL: http://svn.freebsd.org/changeset/base/221813
Log: 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! Modified: head/sys/dev/bm/if_bm.c Modified: head/sys/dev/bm/if_bm.c ============================================================================== --- head/sys/dev/bm/if_bm.c Thu May 12 14:16:07 2011 (r221812) +++ head/sys/dev/bm/if_bm.c Thu May 12 14:27:28 2011 (r221813) @@ -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); _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"