Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic fix inverted logic with AWIN_GMAC_MAC_CONF_MIISEL...



details:   https://anonhg.NetBSD.org/src/rev/10f718945808
branches:  trunk
changeset: 803246:10f718945808
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Sun Oct 19 13:04:24 2014 +0000

description:
fix inverted logic with AWIN_GMAC_MAC_CONF_MIISEL bit; my cubieboard2 can talk to the network now!

diffstat:

 sys/dev/ic/dwc_gmac.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 31c6b70278c5 -r 10f718945808 sys/dev/ic/dwc_gmac.c
--- a/sys/dev/ic/dwc_gmac.c     Sun Oct 19 11:45:01 2014 +0000
+++ b/sys/dev/ic/dwc_gmac.c     Sun Oct 19 13:04:24 2014 +0000
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.11 2014/10/19 11:45:01 martin Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.12 2014/10/19 13:04:24 jmcneill Exp $");
 
 /* #define     DWC_GMAC_DEBUG  1 */
 
@@ -665,12 +665,13 @@
            | AWIN_GMAC_MAC_CONF_TXENABLE;
        switch (IFM_SUBTYPE(mii->mii_media_active)) {
        case IFM_10_T:
+               conf |= AWIN_GMAC_MAC_CONF_MIISEL;
                break;
        case IFM_100_TX:
-               conf |= AWIN_GMAC_MAC_CONF_FES100;
+               conf |= AWIN_GMAC_MAC_CONF_FES100 |
+                       AWIN_GMAC_MAC_CONF_MIISEL;
                break;
        case IFM_1000_T:
-               conf |= AWIN_GMAC_MAC_CONF_MIISEL;
                break;
        }
        if (IFM_OPTIONS(mii->mii_media_active) & IFM_FDX)



Home | Main Index | Thread Index | Old Index