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_mgmt_init() wit...



details:   https://anonhg.NetBSD.org/src/rev/d5c14d0a0f6c
branches:  trunk
changeset: 969708:d5c14d0a0f6c
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Fri Feb 28 14:20:06 2020 +0000

description:
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.

diffstat:

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

diffs (27 lines):

diff -r 6b0f8589214d -r d5c14d0a0f6c sys/dev/pci/if_bnx.c
--- a/sys/dev/pci/if_bnx.c      Fri Feb 28 13:31:03 2020 +0000
+++ b/sys/dev/pci/if_bnx.c      Fri Feb 28 14:20:06 2020 +0000
@@ -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 @@
        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__);



Home | Main Index | Thread Index | Old Index