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-25 07:54:06 -0600 |
commit | 4109916fcd0f399923eb5d757b6f827183617c49 (patch) | |
tree | 5f7a149f5a018f2e4410467a9698c983da14714d | |
parent | 800f3c44732a0a6fed9bfdf7bb6c5a612b164e77 (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>
-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; } |