summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-01-17 10:44:39 +0000
committerphk <phk@FreeBSD.org>2004-01-17 10:44:39 +0000
commitb8698f2968ee8eae55e888c1a3ec985218257e28 (patch)
tree6ef16aafc9b0ff3ac13046b5503dfd72fa4dca23
parent6ccf660afe0115b2fff1f083e8cbf24dd016eda3 (diff)
downloadFreeBSD-src-b8698f2968ee8eae55e888c1a3ec985218257e28.zip
FreeBSD-src-b8698f2968ee8eae55e888c1a3ec985218257e28.tar.gz
Make sure set the media type in the phy, we cannot trust it to have chosen
the type we happen to want. Bug triggered by net-booting soekris hardware which comes up in 10/hdx mode by default.
-rw-r--r--sys/dev/mii/ukphy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/mii/ukphy.c b/sys/dev/mii/ukphy.c
index 68403ee..6fd52ab 100644
--- a/sys/dev/mii/ukphy.c
+++ b/sys/dev/mii/ukphy.c
@@ -167,6 +167,7 @@ ukphy_attach(dev)
printf("\n");
MIIBUS_MEDIAINIT(sc->mii_dev);
+ mii_phy_setmedia(sc);
return(0);
}
OpenPOWER on IntegriCloud