Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/8e056f04413a
branches:  netbsd-6-0
changeset: 775090:8e056f04413a
user:      bouyer <bouyer%NetBSD.org@localhost>
date:      Sun Nov 15 17:45:50 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 4d46a80eef79 -r 8e056f04413a sys/dev/mii/atphy.c
--- a/sys/dev/mii/atphy.c       Sun Nov 15 16:19:20 2015 +0000
+++ b/sys/dev/mii/atphy.c       Sun Nov 15 17:45:50 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: atphy.c,v 1.11 2011/10/02 21:42:19 jmcneill Exp $ */
+/*     $NetBSD: atphy.c,v 1.11.12.1 2015/11/15 17:45:50 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 2011/10/02 21:42:19 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: atphy.c,v 1.11.12.1 2015/11/15 17:45:50 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