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
dc64dfc792
commit
065c59620f
@ -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…
x
Reference in New Issue
Block a user