Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Replace bnx_ifmedia_upd() in bnx_init() with mii...



details:   https://anonhg.NetBSD.org/src/rev/9f213ee1b582
branches:  trunk
changeset: 745323:9f213ee1b582
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Feb 28 14:57:55 2020 +0000

description:
Replace bnx_ifmedia_upd() in bnx_init() with mii_ifmedia_change() for future
locking changes.

diffstat:

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

diffs (27 lines):

diff -r 11e2dc5c1078 -r 9f213ee1b582 sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Fri Feb 28 14:20:06 2020 +0000
+++ b/sys/dev/pci/if_bnx.c      Fri Feb 28 14:57:55 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 msaitoh Exp $      */
+/*     $NetBSD: if_bnx.c,v 1.94 2020/02/28 14:57:55 msaitoh Exp $      */
 /*     $OpenBSD: if_bnx.c,v 1.101 2013/03/28 17:21:44 brad Exp $       */
 
 /*-
@@ -35,7 +35,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/sys/dev/bce/if_bce.c,v 1.3 2006/04/13 14:12:26 ru Exp $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.94 2020/02/28 14:57:55 msaitoh Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -5061,7 +5061,7 @@
        /* Enable host interrupts. */
        bnx_enable_intr(sc);
 
-       bnx_ifmedia_upd(ifp);
+       mii_ifmedia_change(&sc->bnx_mii);
 
        SET(ifp->if_flags, IFF_RUNNING);
        CLR(ifp->if_flags, IFF_OACTIVE);



Home | Main Index | Thread Index | Old Index