Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2011 14:27:29 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221813 - head/sys/dev/bm
Message-ID:  <201105121427.p4CERTwI040617@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105121427.p4CERTwI040617>