Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/dev/mii Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/9a21cad9df15
branches:  netbsd-6
changeset: 777006:9a21cad9df15
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Nov 15 17:45:44 2015 +0000

description:
Pull up following revision(s) (requested by msaitoh in ticket #1325):
        sys/dev/mii/atphy.c: revision 1.17
  Fix incorrect argument of mii_anar(). Fixes PR#50206.
XXX pullup -[567]

diffstat:

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

diffs (27 lines):

diff -r d122c353f68a -r 9a21cad9df15 sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c       Sun Nov 15 17:41:26 2015 +0000
+++ b/sys/dev/mii/atphy.c       Sun Nov 15 17:45:44 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atphy.c,v 1.11.8.2 2015/02/04 11:35:04 martin Exp $ */
+/*     $NetBSD: atphy.c,v 1.11.8.3 2015/11/15 17:45:44 bouyer Exp $ */
 /*     $OpenBSD: atphy.c,v 1.1 2008/09/25 20:47:16 brad Exp $  */
 
 /*-
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.11.8.2 2015/02/04 11:35:04 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.11.8.3 2015/11/15 17:45:44 bouyer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -226,7 +226,7 @@
                        return EINVAL;
                }
 
-               anar = mii_anar(ife->ifm_media);
+               anar = mii_anar(IFM_SUBTYPE(ife->ifm_media));
                if (((ife->ifm_media & IFM_GMASK) & IFM_FDX) != 0) {
                        bmcr |= BMCR_FDX;
                        /* Enable pause. */



Home | Main Index | Thread Index | Old Index