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/4f6fa29373ff
branches: trunk
changeset: 333104:4f6fa29373ff
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 c3ac16f1ecd5 -r 4f6fa29373ff 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