summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2007-06-01 04:35:29 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2007-06-01 04:35:29 +0000
commitb8de34ca2901324ba03c3e152d370d186d4dcc64 (patch)
tree65d35a4e2a44c841755333d5b15a6fb4f6d0256b
parent551227565283bce9f8ef69ff903e26f70ecfed11 (diff)
Only probe phy's at address 0; gets rid of bogus phy's on the
Marvell Yukon 88E8036. ok jsg@
-rw-r--r--sys/dev/pci/if_msk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c
index 3d6b95f3b5f..f6a2caee49a 100644
--- a/sys/dev/pci/if_msk.c
+++ b/sys/dev/pci/if_msk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_msk.c,v 1.54 2007/05/26 16:44:21 reyk Exp $ */
+/* $OpenBSD: if_msk.c,v 1.55 2007/06/01 04:35:28 kettenis Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -1100,7 +1100,7 @@ msk_attach(struct device *parent, struct device *self, void *aux)
mii_flags = MIIF_DOPAUSE;
if (sc->sk_fibertype)
mii_flags |= MIIF_HAVEFIBER;
- mii_attach(self, &sc_if->sk_mii, 0xffffffff, MII_PHY_ANY,
+ mii_attach(self, &sc_if->sk_mii, 0xffffffff, 0,
MII_OFFSET_ANY, mii_flags);
if (LIST_FIRST(&sc_if->sk_mii.mii_phys) == NULL) {
printf("%s: no PHY found!\n", sc_if->sk_dev.dv_xname);