Module Name:    src
Committed By:   msaitoh
Date:           Fri Feb 28 14:20:06 UTC 2020

Modified Files:
        src/sys/dev/pci: if_bnx.c

Log Message:
 Replace bnx_ifmedia_upd() in bnx_mgmt_init() with mii_ifmedia_change() for
future locking changes. Suggested by thorpej@.

 XXX Need more work for bnx_ifmedia_upd() itself.


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_bnx.c
diff -u src/sys/dev/pci/if_bnx.c:1.92 src/sys/dev/pci/if_bnx.c:1.93
--- src/sys/dev/pci/if_bnx.c:1.92	Fri Feb  7 00:04:28 2020
+++ src/sys/dev/pci/if_bnx.c	Fri Feb 28 14:20:06 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_bnx.c,v 1.92 2020/02/07 00:04:28 thorpej Exp $	*/
+/*	$NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 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.92 2020/02/07 00:04:28 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bnx.c,v 1.93 2020/02/28 14:20:06 msaitoh Exp $");
 
 /*
  * The following controllers are supported by this driver:
@@ -5100,7 +5100,7 @@ bnx_mgmt_init(struct bnx_softc *sc)
 	REG_RD(sc, BNX_MISC_ENABLE_SET_BITS);
 	DELAY(20);
 
-	bnx_ifmedia_upd(ifp);
+	mii_ifmedia_change(&sc->bnx_mii);
 
 bnx_mgmt_init_exit:
 	DBPRINT(sc, BNX_VERBOSE_RESET, "Exiting %s()\n", __func__);

Reply via email to