bge: If chip has CPMU, let it handle GPHY power down
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 2 Jul 2012 08:14:35 +0000 (16:14 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Mon, 2 Jul 2012 08:46:02 +0000 (16:46 +0800)
Obtained-from: FreeBSD 226804

sys/dev/netif/bge/if_bge.c

index 2ad4716..56cc589 100644 (file)
@@ -2513,7 +2513,7 @@ bge_reset(struct bge_softc *sc)
         * Set GPHY Power Down Override to leave GPHY
         * powered up in D0 uninitialized.
         */
-       if (BGE_IS_5705_PLUS(sc))
+       if (BGE_IS_5705_PLUS(sc) && (sc->bge_flags & BGE_FLAG_CPMU) == 0)
                reset |= BGE_MISCCFG_GPHY_PD_OVERRIDE;
 
        /* Issue global reset */