From: benoit.thebaudeau@advans Date: Thu, 19 Jul 2012 02:12:58 +0000 (+0000) Subject: net: fec_mxc: Fix MDC for xMII X-Git-Tag: v2012.10-rc1~415^2~35^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f41471e6a36e70e53bf4cbe4247ff4c0ba87e56f;p=u-boot net: fec_mxc: Fix MDC for xMII The MDC signal is available on all xMII (i.e. 'not 7-wire') interfaces, so mii_speed has to be set for all these interfaces, and not only for MII. Signed-off-by: Benoît Thébaudeau Cc: Joe Hershberger Cc: Stefano Babic --- diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index ddbdd3336f..fbfc842aca 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -603,7 +603,7 @@ static int fec_init(struct eth_device *dev, bd_t* bd) fec_reg_setup(fec); - if (fec->xcv_type == MII10 || fec->xcv_type == MII100) + if (fec->xcv_type != SEVENWIRE) fec_mii_setspeed(fec); /*