summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorjchandra <jchandra@FreeBSD.org>2010-10-20 09:50:11 +0000
committerjchandra <jchandra@FreeBSD.org>2010-10-20 09:50:11 +0000
commitcbffbbddb9f8c2d3d45f73bd48a7d8aa491903b8 (patch)
tree996306e8f44da629cf80e3ee72c52ece295314d5 /sys/mips
parent56d2c5a02ceb9f57dded4b83471f014f92ea23f8 (diff)
downloadFreeBSD-src-cbffbbddb9f8c2d3d45f73bd48a7d8aa491903b8.zip
FreeBSD-src-cbffbbddb9f8c2d3d45f73bd48a7d8aa491903b8.tar.gz
Network driver updates
- Fix network driver issue on a XLS eval board (major# 8). - Fix issue uncovered by r213475 in check for XGMII Submitted by: Sriram Gorti (srgorti at netlogicmicro dot com)
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/rmi/board.c12
-rw-r--r--sys/mips/rmi/dev/nlge/if_nlge.c2
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/mips/rmi/board.c b/sys/mips/rmi/board.c
index 3bee863..4c49dac 100644
--- a/sys/mips/rmi/board.c
+++ b/sys/mips/rmi/board.c
@@ -283,14 +283,14 @@ xls_board_specific_overrides(struct xlr_board_info* board)
break;
case RMI_XLR_BOARD_ARIZONA_VIII:
-
- if (blk1->enabled) {
+ if (blk1->enabled) {
/* There is just one Octal PHY on the board and it is
* connected to the MII interface for NA Quad 0. */
- blk1->gmac_port[0].mii_addr = XLR_IO_GMAC_0_OFFSET;
- blk1->gmac_port[1].mii_addr = XLR_IO_GMAC_0_OFFSET;
- blk1->gmac_port[2].mii_addr = XLR_IO_GMAC_0_OFFSET;
- blk1->gmac_port[3].mii_addr = XLR_IO_GMAC_0_OFFSET;
+ for (i = 0; i < 4; i++) {
+ blk1->gmac_port[i].mii_addr =
+ XLR_IO_GMAC_0_OFFSET;
+ blk1->gmac_port[i].mdint_id = 0;
+ }
}
break;
diff --git a/sys/mips/rmi/dev/nlge/if_nlge.c b/sys/mips/rmi/dev/nlge/if_nlge.c
index 6495e4b..37e1c54 100644
--- a/sys/mips/rmi/dev/nlge/if_nlge.c
+++ b/sys/mips/rmi/dev/nlge/if_nlge.c
@@ -861,7 +861,7 @@ nlge_mii_read(struct device *dev, int phyaddr, int regidx)
int val;
sc = device_get_softc(dev);
- val = (sc->port_type != XLR_XGMII) ? (0xffff) :
+ val = (sc->port_type == XLR_XGMII) ? (0xffff) :
nlge_mii_read_internal(sc->mii_base, phyaddr, regidx);
return (val);
OpenPOWER on IntegriCloud