Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/mii Move mii_phy_statusmsg(sc) back to its original ...



details:   https://anonhg.NetBSD.org/src/rev/8c057638226d
branches:  trunk
changeset: 937818:8c057638226d
user:      kardel <kardel%NetBSD.org@localhost>
date:      Thu Aug 27 10:10:23 2020 +0000

description:
Move mii_phy_statusmsg(sc) back to its original position. Fixes
deafness bug on macppc reported and tested by martin@
Thanks !

diffstat:

 sys/dev/mii/mii_physubr.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r f22f6984a151 -r 8c057638226d sys/dev/mii/mii_physubr.c
--- a/sys/dev/mii/mii_physubr.c Thu Aug 27 09:57:33 2020 +0000
+++ b/sys/dev/mii/mii_physubr.c Thu Aug 27 10:10:23 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mii_physubr.c,v 1.93 2020/08/24 12:46:04 kardel Exp $  */
+/*     $NetBSD: mii_physubr.c,v 1.94 2020/08/27 10:10:23 kardel Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.93 2020/08/24 12:46:04 kardel Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mii_physubr.c,v 1.94 2020/08/27 10:10:23 kardel Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -451,10 +451,10 @@
        if (sc->mii_media_active != mii_media_active ||
            sc->mii_media_status != mii_media_status ||
            cmd == MII_MEDIACHG) {
+               mii_phy_statusmsg(sc);
                (*mii->mii_statchg)(mii->mii_ifp);
                sc->mii_media_active = mii_media_active;
                sc->mii_media_status = mii_media_status;
-               mii_phy_statusmsg(sc);
        }
 }
 



Home | Main Index | Thread Index | Old Index