linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ibm_emac missed fix
@ 2005-01-20 20:54 Ralph Siemsen
  0 siblings, 0 replies; only message in thread
From: Ralph Siemsen @ 2005-01-20 20:54 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

The following minor fix was posted here some months ago but hasn't found 
its way in to 2.6.10 or current bk.

Signed-off-by: Ralph Siemsen <ralphs@netwinder.org>

[-- Attachment #2: emac.patch --]
[-- Type: text/plain, Size: 517 bytes --]

--- linux-2.6.10-orig/drivers/net/ibm_emac/ibm_emac_core.c	2005-01-20 15:45:28.576226303 -0500
+++ linux-2.6.10/drivers/net/ibm_emac/ibm_emac_core.c	2005-01-20 15:25:10.430674655 -0500
@@ -475,8 +479,9 @@
 
 	out_be32(&emacp->em0stacr, stacr);
 
-	while (((stacr = in_be32(&emacp->em0stacr) & EMAC_STACR_OC) == 0)
-					&& (count++ < 5000))
+	count = 0;
+	while ((((stacr = in_be32(&emacp->em0stacr)) & EMAC_STACR_OC) == 0)
+					&& (count++ < MDIO_DELAY))
 		udelay(1);
 	MDIO_DEBUG((" (count was %d)\n", count));
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-20 21:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-20 20:54 [PATCH] ibm_emac missed fix Ralph Siemsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).