diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2011-12-28 07:43:11 +0100 |
---|---|---|
committer | John Rigby <john.rigby@linaro.org> | 2012-04-23 07:48:49 -0600 |
commit | 5a67a409a0a391511970fb1641f16cbcd81f085f (patch) | |
tree | 8147ef4fd919bbebafefab9f72669ea18677f708 /drivers | |
parent | 67db864687c9f1ec2323ce411401e994c646c55c (diff) |
fec_mxc: move autonegoatiate restart after mii_postcall
Allow boards to change what is advertised before an autoneg
restart happens
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/fec_mxc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 4105f6c52..bca4a4b53 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -207,12 +207,13 @@ static int miiphy_restart_aneg(struct eth_device *dev) fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, LPA_100FULL | LPA_100HALF | LPA_10FULL | LPA_10HALF | PHY_ANLPAR_PSB_802_3); - fec_mdio_write(eth, fec->phy_id, MII_BMCR, - BMCR_ANENABLE | BMCR_ANRESTART); if (fec->mii_postcall) ret = fec->mii_postcall(fec->phy_id); + fec_mdio_write(eth, fec->phy_id, MII_BMCR, + BMCR_ANENABLE | BMCR_ANRESTART); + return ret; } |