[U-Boot] [PATCH 4/5] net: fec_mxc: Nove autonegoatiate restart after mii_postcall
Marek Vasut
marek.vasut at gmail.com
Fri Jan 13 13:44:56 CET 2012
> From: Troy Kisky <troy.kisky at boundarydevices.com>
>
> Allow boards to change what is advertised before an autoneg
> restart happens.
>
> Signed-off-by: Troy Kisky <troy.kisky at boundarydevices.com>
> CC: Troy Kisky <troy.kisky at boundarydevices.com>
> CC: Stefano Babic <sbabic at denx.de>
> CC: Marek Vasut <marek.vasut at gmail.com>
> ---
> drivers/net/fec_mxc.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
> index b50e01c..6271df5 100644
> --- a/drivers/net/fec_mxc.c
> +++ b/drivers/net/fec_mxc.c
> @@ -206,12 +206,12 @@ static int miiphy_restart_aneg(struct eth_device
> *dev) miiphy_write(dev->name, fec->phy_id, MII_ADVERTISE,
> LPA_100FULL | LPA_100HALF | LPA_10FULL |
> LPA_10HALF | PHY_ANLPAR_PSB_802_3);
> - miiphy_write(dev->name, fec->phy_id, MII_BMCR,
> - BMCR_ANENABLE | BMCR_ANRESTART);
> -
> if (fec->mii_postcall)
> ret = fec->mii_postcall(fec->phy_id);
>
> + miiphy_write(dev->name, fec->phy_id, MII_BMCR,
> + BMCR_ANENABLE | BMCR_ANRESTART);
> +
> return ret;
> }
I think this might break boards using the mii_postcall.
More information about the U-Boot
mailing list