Skip to contentSkip to conversation

ibm_emac missed fix

PATCH New Ralph Siemsen 1 participant 1 message Jan 20, 2005 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ibm_emac missed fix

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

drivers/net/ibm_emac/ibm_emac_core.c +3 -2
@@ -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));