9
0
Fork 0

Only change ADVERTISE_ALL bit

Signed-Off-By: Enrik Berkhan <Enrik.Berkhan@ge.com>
This commit is contained in:
Enrik Berkhan 2008-01-23 12:12:01 +01:00 committed by Wolfram Sang
parent e02f84dd0b
commit 0449be2dc1
1 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,9 @@ int miiphy_restart_aneg(struct miiphy_device *mdev)
/*
* 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);
}