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:
parent
47cb006cdd
commit
91216e1ef1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user