Skip to contentSkip to conversation

net: fec_mxc: Fix MDC for xMII

PATCH New Benoît Thébaudeau 2 participants 2 messages Jul 19, 2012 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 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.

Cc Joe Hershberger <[email protected]>
Cc Stefano Babic <[email protected]>
---
 .../drivers/net/fec_mxc.c                          |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/fec_mxc.c +1 -1
index c64a223..e25cde0 100644
@@ -597,7 +597,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);
 
 	/*