diff --git a/drivers/net/miiphy.c b/drivers/net/miiphy.c index 5fe7dc8..126d0b8 100644 --- a/drivers/net/miiphy.c +++ b/drivers/net/miiphy.c @@ -58,7 +58,9 @@ /* * 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); }