Skip to contentSkip to conversation

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

PATCH New Russell King 1 participant 1 message Oct 29, 2004 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 8390.c: Use mdelay(10) rather than udelay(10*1000)

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

drivers/net/8390.c +1 -1
diff -up -x BitKeeper -x ChangeSet -x SCCS -x _xlk -x *.orig -x *.rej orig/drivers/net/8390.c linux/drivers/net/8390.c
@@ -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.
Signature · 4 lines
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