patch-2.2.18 linux/drivers/net/bmac.c

Next file: linux/drivers/net/bonding.c
Previous file: linux/drivers/net/atari_pamsnet.c
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/drivers/net/bmac.c linux/drivers/net/bmac.c
@@ -248,12 +248,16 @@
 	dbdma_reset(rd);
 	dbdma_reset(td);
 
+	dbdma_st32((volatile unsigned long *)&rd->intr_sel, 0x40);
+	dbdma_st32((volatile unsigned long *)&rd->br_sel, 0x40);
+	dbdma_st32((volatile unsigned long *)&td->wait_sel, 0x20);
+
 	feature_set(bp->node, FEATURE_BMac_IO_enable);
-	udelay(10000);
+	mdelay(100);
 	feature_set(bp->node, FEATURE_BMac_reset);
-	udelay(10000);
+	mdelay(10);
 	feature_clear(bp->node, FEATURE_BMac_reset);
-	udelay(10000);
+	mdelay(10);
 }
 
 #define MIFDELAY	udelay(10)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)