Only change ADVERTISE_ALL bit
Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
This commit is contained in:
parent
e02f84dd0b
commit
0449be2dc1
|
@ -58,7 +58,9 @@ int miiphy_restart_aneg(struct miiphy_device *mdev)
|
||||||
/*
|
/*
|
||||||
* Set the auto-negotiation advertisement register bits
|
* Set the auto-negotiation advertisement register bits
|
||||||
*/
|
*/
|
||||||
mdev->write(mdev, mdev->address, MII_ADVERTISE, ADVERTISE_ALL);
|
mdev->read(mdev, mdev->address, MII_ADVERTISE, &status);
|
||||||
|
status |= ADVERTISE_ALL;
|
||||||
|
mdev->write(mdev, mdev->address, MII_ADVERTISE, status);
|
||||||
|
|
||||||
mdev->write(mdev, mdev->address, MII_BMCR, BMCR_ANENABLE | BMCR_ANRESTART);
|
mdev->write(mdev, mdev->address, MII_BMCR, BMCR_ANENABLE | BMCR_ANRESTART);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue