Skip to contentSkip to conversation

cpmac: wait longer after MDIO reset

PATCH Applied Florian Fainelli 2 participants 2 messages Aug 4, 2009 – Aug 5, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 4/5 cpmac: wait longer after MDIO reset

This patch slows down the MDIO_ALIVE busy waiting to let switches and PHY come up after reset. Previous loop was too quick for IC+175C and ADM6996C/L switches to come up.

---

drivers/net/cpmac.c +2 -2
index f2fc722..12a521e 100644
@@ -1245,11 +1245,11 @@ int __devinit cpmac_init(void)
 
 	cpmac_mii->reset(cpmac_mii);
 
-	for (i = 0; i < 300000; i++)
+	for (i = 0; i < 300; i++)
 		if ((mask = cpmac_read(cpmac_mii->priv, CPMAC_MDIO_ALIVE)))
 			break;
 		else
-			cpu_relax();
+			msleep(10);
 
 	mask &= 0x7fffffff;
 	if (mask & (mask - 1)) {
maintainer Applied
#1 lore raw

From: Florian Fainelli <[email protected]>
Date: Tue, 4 Aug 2009 22:52:57 +0200

Quoted 5 lines

This patch slows down the MDIO_ALIVE busy waiting to let switches and PHY come up after reset. Previous loop was too quick for IC+175C and ADM6996C/L switches to come up.

Applied to net-next-2.6