Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/mii Pass flags correctly. See also:



details:   https://anonhg.NetBSD.org/src/rev/b01cc11c5798
branches:  trunk
changeset: 447565:b01cc11c5798
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jan 16 10:10:49 2019 +0000

description:
Pass flags correctly. See also:
http://mail-index.netbsd.org/source-changes/2002/03/25/msg100515.html

diffstat:

 sys/dev/mii/rgephy.c |  6 +++---
 sys/dev/mii/urlphy.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r dd679d124411 -r b01cc11c5798 sys/dev/mii/rgephy.c
--- a/sys/dev/mii/rgephy.c      Wed Jan 16 08:40:24 2019 +0000
+++ b/sys/dev/mii/rgephy.c      Wed Jan 16 10:10:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rgephy.c,v 1.44 2018/06/27 07:51:36 msaitoh Exp $      */
+/*     $NetBSD: rgephy.c,v 1.45 2019/01/16 10:10:49 msaitoh Exp $      */
 
 /*
  * Copyright (c) 2003
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.44 2018/06/27 07:51:36 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rgephy.c,v 1.45 2019/01/16 10:10:49 msaitoh Exp $");
 
 
 /*
@@ -134,7 +134,7 @@
        sc->mii_mpd_model = MII_MODEL(ma->mii_id2);
        sc->mii_mpd_rev = MII_REV(ma->mii_id2);
        sc->mii_pdata = mii;
-       sc->mii_flags = mii->mii_flags;
+       sc->mii_flags = ma->mii_flags;
        sc->mii_anegticks = MII_ANEGTICKS_GIGE;
 
        sc->mii_funcs = &rgephy_funcs;
diff -r dd679d124411 -r b01cc11c5798 sys/dev/mii/urlphy.c
--- a/sys/dev/mii/urlphy.c      Wed Jan 16 08:40:24 2019 +0000
+++ b/sys/dev/mii/urlphy.c      Wed Jan 16 10:10:49 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: urlphy.c,v 1.31 2016/07/07 06:55:41 msaitoh Exp $      */
+/*     $NetBSD: urlphy.c,v 1.32 2019/01/16 10:10:49 msaitoh Exp $      */
 /*
  * Copyright (c) 2001, 2002
  *     Shingo WATANABE <nabe%nabechan.org@localhost>.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.31 2016/07/07 06:55:41 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: urlphy.c,v 1.32 2019/01/16 10:10:49 msaitoh Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -110,7 +110,7 @@
        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 = MII_ANEGTICKS_GIGE;
 
        /* Don't do loopback on this PHY. */



Home | Main Index | Thread Index | Old Index