Use DELAY() instead of pause if waiting time is less than 1ms.

This will fix driver hang if hz < 1000.

Pointed out by:	thompsa
This commit is contained in:
yongari 2008-07-18 01:00:54 +00:00
parent dc64dfc792
commit 065c59620f

View File

@ -492,9 +492,9 @@ age_phy_reset(struct age_softc *sc)
/* Reset PHY. */
CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_RST);
pause("agephy", hz / 1000);
DELAY(1000);
CSR_WRITE_4(sc, AGE_GPHY_CTRL, GPHY_CTRL_CLR);
pause("agephy", hz / 1000);
DELAY(1000);
}
static int