aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/mii
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-01-17 10:44:39 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-01-17 10:44:39 +0000
commit135bd3f8a18fdae7ebe73a4a9d7beed7869f809f (patch)
tree6ef16aafc9b0ff3ac13046b5503dfd72fa4dca23 /sys/dev/mii
parent1d9c86b948c980f700f7274fc45b14349e4dfc7b (diff)
downloadsrc-135bd3f8a18fdae7ebe73a4a9d7beed7869f809f.tar.gz
src-135bd3f8a18fdae7ebe73a4a9d7beed7869f809f.zip
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.
Notes
Notes: svn path=/head/; revision=124620
Diffstat (limited to 'sys/dev/mii')
-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 68403ee4aaa5..6fd52ab980c9 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);
}