[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    [BusyBox] Re: bringing eth0 up and down
From:       "=?ISO-8859-1?Q?Harald=20K=FCthe?=" <Harald.Kuethe () controlware ! de>
Date:       2004-06-30 13:35:26
Message-ID: s0e2dddd.087 () post2 ! controlware ! de
[Download RAW message or body]

Hi Brenda,

I had a similar problem on our custom board with MPC855.
It is driver related to the FEC of the PPC. It occurs if you do not use/configure  MDIO. 
The FEC driver then has a "restart" problem. 
Here's a patch for 2.4.26 which at least works for me.
So you will probably not have this problem on arm:-)

Regards
Harald

diff -urN linux-2.4.26/arch/ppc/8xx_io/fec.c linux-2.4.26-cwp/arch/ppc/8xx_io/fec.c
--- linux-2.4.26/arch/ppc/8xx_io/fec.c	2003-11-28 19:26:18.000000000 +0100
+++ linux-2.4.26-cwp/arch/ppc/8xx_io/fec.c	2004-05-25 10:41:16.000000000 +0200
@@ -1466,6 +1466,13 @@
 	return -ENODEV;		/* No PHY we understand */
 #else
 	fep->link = 1;
+
+// HK:
+#ifndef	CONFIG_USE_MDIO
+	fec_restart (dev, 0);
+#endif
+// HK:
+
 	netif_start_queue(dev);
 	return 0;	/* Success */
 #endif	/* CONFIG_USE_MDIO */ 





_______________________________________________
busybox mailing list
busybox@mail.busybox.net
http://codepoet.org/mailman/listinfo/busybox


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic