emac: fix mdio delay
Subsystems (2)
PATCH 1/1 emac: fix mdio delay
Fixes MDIO delay. Please apply.
Signed-off-by Ralph Siemsen <[email protected]>
Signed-off-by Matt Porter <[email protected]>
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));