aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/tl
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2010-10-15 15:00:30 +0000
committerMarius Strobl <marius@FreeBSD.org>2010-10-15 15:00:30 +0000
commitd6c65d276e0fbe877c04d20f4052d3428bd49b32 (patch)
treedebadee7b9221daaf40bb137a65e66c245f99886 /sys/dev/tl
parent8e5d93dbb40452863b266a378868255bf986af67 (diff)
Notes
Diffstat (limited to 'sys/dev/tl')
-rw-r--r--sys/dev/tl/if_tl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/tl/if_tl.c b/sys/dev/tl/if_tl.c
index d18d21a63b69..56f51dfa2431 100644
--- a/sys/dev/tl/if_tl.c
+++ b/sys/dev/tl/if_tl.c
@@ -1276,9 +1276,11 @@ tl_attach(dev)
* Do MII setup. If no PHYs are found, then this is a
* bitrate ThunderLAN chip that only supports 10baseT
* and AUI/BNC.
+ * XXX mii_attach() can fail for reason different than
+ * no PHYs found!
*/
- if (mii_phy_probe(dev, &sc->tl_miibus,
- tl_ifmedia_upd, tl_ifmedia_sts)) {
+ if (mii_attach(dev, &sc->tl_miibus, ifp, tl_ifmedia_upd,
+ tl_ifmedia_sts, BMSR_DEFCAPMASK, MII_PHY_ANY, MII_OFFSET_ANY, 0)) {
struct ifmedia *ifm;
sc->tl_bitrate = 1;
ifmedia_init(&sc->ifmedia, 0, tl_ifmedia_upd, tl_ifmedia_sts);