[PATCH] 8390.c: Use mdelay(10) rather than udelay(10*1000)

From: Russell King
Date: Fri Oct 29 2004 - 16:58:40 EST


ARM udelay can't cope with >2ms delays.

Signed-off-by: Russell King <rmk@xxxxxxxxxxxxxxxx>

diff -up -x BitKeeper -x ChangeSet -x SCCS -x _xlk -x *.orig -x *.rej orig/drivers/net/8390.c linux/drivers/net/8390.c
--- orig/drivers/net/8390.c Sat Oct 23 11:38:21 2004
+++ linux/drivers/net/8390.c Sat Oct 23 11:36:34 2004
@@ -813,7 +813,7 @@ static void ei_rx_overrun(struct net_dev
* We wait at least 10ms.
*/

- udelay(10*1000);
+ mdelay(10);

/*
* Reset RBCR[01] back to zero as per magic incantation.

--
Russell King
Linux kernel 2.6 ARM Linux - http://www.arm.linux.org.uk/
maintainer of: 2.6 PCMCIA - http://pcmcia.arm.linux.org.uk/
2.6 Serial core
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/