Title: [4064] trunk/drivers/net/bfin_mac.c: Fix bug [#3535], shorten the mdelay value to solve this problem.
Revision
4064
Author
cooloney
Date
2007-12-26 00:59:56 -0600 (Wed, 26 Dec 2007)

Log Message

Fix bug [#3535], shorten the mdelay value to solve this problem.

Diffstat

 bfin_mac.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Modified Paths

Diff

Modified: trunk/drivers/net/bfin_mac.c (4063 => 4064)


--- trunk/drivers/net/bfin_mac.c	2007-12-26 03:12:53 UTC (rev 4063)
+++ trunk/drivers/net/bfin_mac.c	2007-12-26 06:59:56 UTC (rev 4064)
@@ -301,7 +301,7 @@
 
 	/* poll the STABUSY bit */
 	while ((bfin_read_EMAC_STAADD()) & STABUSY) {
-		mdelay(10);
+		mdelay(1);
 		if (timeout_cnt-- < 0) {
 			printk(KERN_ERR DRV_NAME
 			": wait MDC/MDIO transaction to complete timeout\n");
@@ -556,7 +556,7 @@
 	 */
 	if (current_tx_ptr->next->next == tx_list_head) {
 		while (tx_list_head->status.status_word == 0) {
-			mdelay(10);
+			mdelay(1);
 			if (tx_list_head->status.status_word != 0
 			    || !(bfin_read_DMA2_IRQ_STATUS() & 0x08)) {
 				goto adjust_head;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to