summaryrefslogtreecommitdiff
path: root/sys/dev/mii/eephy.c
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-01-28 18:27:56 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-01-28 18:27:56 +0000
commit5ca8741541835fac1f183eecad5bdb7e8b6aa166 (patch)
treece32cc4bff59db745207b1fb0166f5f3f4f6da3d /sys/dev/mii/eephy.c
parented395be04ed325e1c638a0a6ce8120ea072595b7 (diff)
Get flags passed down to PHY drivers correctly. This was done on
an adhoc basis in a couple of PHY drivers, this fixes it more generally. From NetBSD Fixes panics with aue(4) NICs.
Diffstat (limited to 'sys/dev/mii/eephy.c')
-rw-r--r--sys/dev/mii/eephy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/eephy.c b/sys/dev/mii/eephy.c
index e654911b7ed..b5d0222bd3f 100644
--- a/sys/dev/mii/eephy.c
+++ b/sys/dev/mii/eephy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: eephy.c,v 1.13 2004/12/29 01:30:45 brad Exp $ */
+/* $OpenBSD: eephy.c,v 1.14 2005/01/28 18:27:55 brad Exp $ */
/*
* Principal Author: Parag Patel
* Copyright (c) 2001
@@ -117,7 +117,7 @@ eephyattach(struct device *parent, struct device *self, void *aux)
sc->mii_phy = ma->mii_phyno;
sc->mii_funcs = &eephy_funcs;
sc->mii_pdata = mii;
- sc->mii_flags = mii->mii_flags;
+ sc->mii_flags = ma->mii_flags;
sc->mii_anegticks = 10;
if (MII_OUI(ma->mii_id1, ma->mii_id2) == MII_OUI_MARVELL &&