diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2005-01-28 18:27:56 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2005-01-28 18:27:56 +0000 |
commit | 5ca8741541835fac1f183eecad5bdb7e8b6aa166 (patch) | |
tree | ce32cc4bff59db745207b1fb0166f5f3f4f6da3d /sys/dev/mii/urlphy.c | |
parent | ed395be04ed325e1c638a0a6ce8120ea072595b7 (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/urlphy.c')
-rw-r--r-- | sys/dev/mii/urlphy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/mii/urlphy.c b/sys/dev/mii/urlphy.c index 74f4b04a539..fe755f2e469 100644 --- a/sys/dev/mii/urlphy.c +++ b/sys/dev/mii/urlphy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: urlphy.c,v 1.7 2004/10/17 23:01:12 deraadt Exp $ */ +/* $OpenBSD: urlphy.c,v 1.8 2005/01/28 18:27:55 brad Exp $ */ /* $NetBSD: urlphy.c,v 1.1 2002/03/28 21:07:53 ichiro Exp $ */ /* * Copyright (c) 2001, 2002 @@ -117,7 +117,7 @@ urlphy_attach(struct device *parent, struct device *self, void *aux) sc->mii_phy = ma->mii_phyno; sc->mii_funcs = &urlphy_funcs; sc->mii_pdata = mii; - sc->mii_flags = mii->mii_flags; + sc->mii_flags = ma->mii_flags; sc->mii_anegticks = 10; /* Don't do loopback on this PHY. */ |