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:
Pyun YongHyeon 2008-07-18 01:00:54 +00:00
parent 47cb006cdd
commit 91216e1ef1

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