Fix a bug on ip17x switch initialization which will fail as soon as you
disable the debug and diagnosis options from current. We must wait 2ms after the switch reset and not 2us. Tested on RB433UAH.
This commit is contained in:
parent
2a7fbce4de
commit
ff041b946c
@ -63,7 +63,7 @@ ip175c_reset(struct ip17x_softc *sc)
|
||||
if (ip17x_writephy(sc->sc_dev, IP175C_RESET_PHY, IP175C_RESET_REG,
|
||||
0x175c))
|
||||
return (-1);
|
||||
DELAY(2);
|
||||
DELAY(2000);
|
||||
|
||||
/* Force IP175C mode. */
|
||||
data = ip17x_readphy(sc->sc_dev, IP175C_MODE_PHY, IP175C_MODE_REG);
|
||||
|
@ -62,7 +62,7 @@ ip175d_reset(struct ip17x_softc *sc)
|
||||
|
||||
/* Reset all the switch settings. */
|
||||
ip17x_writephy(sc->sc_dev, IP175D_RESET_PHY, IP175D_RESET_REG, 0x175d);
|
||||
DELAY(2);
|
||||
DELAY(2000);
|
||||
|
||||
/* Disable the special tagging mode. */
|
||||
ip17x_updatephy(sc->sc_dev, 21, 22, 0x3, 0x0);
|
||||
|
Loading…
Reference in New Issue
Block a user