generic: ar8216: use mdiobus_write in ar8236_hw_init
SVN-Revision: 30838
This commit is contained in:
parent
7112130105
commit
fc9db6f410
1 changed files with 4 additions and 4 deletions
|
@ -643,10 +643,10 @@ ar8236_hw_init(struct ar8216_priv *priv) {
|
|||
/* Initialize the PHYs */
|
||||
bus = priv->phy->bus;
|
||||
for (i = 0; i < 5; i++) {
|
||||
bus->write(bus, i, MII_ADVERTISE,
|
||||
mdiobus_write(bus, i, MII_ADVERTISE,
|
||||
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
|
||||
ADVERTISE_PAUSE_ASYM);
|
||||
bus->write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
||||
mdiobus_write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
|
||||
}
|
||||
msleep(1000);
|
||||
|
||||
|
|
Loading…
Reference in a new issue