CVSROOT: /home/cvs
Module name: linux
Changes by: ralf@ftp.linux-mips.org 05/07/01 10:28:30
Modified files:
drivers/net : ioc3-eth.c
Log message:
Using the right registers to fiddle with the MII interface makes the
driver work sooo much better ;-)
diff -urN linux/drivers/net/ioc3-eth.c linux/drivers/net/ioc3-eth.c
--- linux/drivers/net/ioc3-eth.c 2005/03/18 17:37:32 1.99
+++ linux/drivers/net/ioc3-eth.c 2005/07/01 09:28:30 1.100
@@ -499,7 +499,7 @@
ioc3_w_micr((phy << MICR_PHYADDR_SHIFT) | reg | MICR_READTRIG);
while (ioc3_r_micr() & MICR_BUSY);
- return ioc3_r_micr() & MIDR_DATA_MASK;
+ return ioc3_r_midr_r() & MIDR_DATA_MASK;
}
static void ioc3_mdio_write(struct net_device *dev, int phy, int reg, int data)
|