In bfe_ifmedia_upd(), setup LED after mii_mediachg(). This makes bfe(4)'s
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Jun 2006 06:31:30 +0000 (06:31 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 24 Jun 2006 06:31:30 +0000 (06:31 +0000)
LED work as expected.  It seems that writing to certain MII registers will
leave LED in incorrect state.

Obtained-from: Mikko Tyolajarvi <mbsd@pacbell.net>
Tested-by: swildner
sys/dev/netif/bfe/if_bfe.c

index e6524ce..8b9bc75 100644 (file)
@@ -29,7 +29,7 @@
  * SUCH DAMAGE.
  *
  * $FreeBSD: src/sys/dev/bfe/if_bfe.c 1.4.4.7 2004/03/02 08:41:33 julian Exp  v
- * $DragonFly: src/sys/dev/netif/bfe/if_bfe.c,v 1.28 2005/12/31 14:07:58 sephe Exp $
+ * $DragonFly: src/sys/dev/netif/bfe/if_bfe.c,v 1.29 2006/06/24 06:31:30 sephe Exp $
  */
 
 #include <sys/param.h>
@@ -1369,6 +1369,8 @@ bfe_ifmedia_upd(struct ifnet *ifp)
        }
        mii_mediachg(mii);
 
+       bfe_setupphy(sc);
+
        return(0);
 }