]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Ignore broadcast status bit in received frames in 8260 FCC ethernet
authorWolfgang Denk <wd@pollux.denx.de>
Wed, 3 Aug 2005 21:03:54 +0000 (23:03 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Wed, 3 Aug 2005 21:03:54 +0000 (23:03 +0200)
loopback test code
Patch by Murray Jensen, 18 Jul 2005

CHANGELOG
cpu/mpc8260/ether_fcc.c

index d5139ea103828d1ba6afcbbfab7d264a591f31d2..b0b0c586a4ddd24ea92946e24fbaa86b13b5ae34 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,10 @@
 Changes for U-Boot 1.1.3:
 ======================================================================
 
+* Ignore broadcast status bit in received frames in 8260 FCC ethernet
+  loopback test code
+  Patch by Murray Jensen, 18 Jul 2005
+
 * Fix typo in mkconfig script (used == instead of =)
   Patch by Murray Jensen, 18 Jul 2005
 
index 82f73907099c05dd745a99086e8a7b57767bd7b9..0393afabc2792d208bf6bfd09a2c110bcca787af 100644 (file)
@@ -628,6 +628,9 @@ swap16 (unsigned short x)
        return (((x & 0xff) << 8) | ((x & 0xff00) >> 8));
 }
 
+/* broadcast is not an error - we send them like that */
+#define BD_ENET_RX_ERRS        (BD_ENET_RX_STATS & ~BD_ENET_RX_BC)
+
 void
 eth_loopback_test (void)
 {
@@ -1002,7 +1005,7 @@ eth_loopback_test (void)
                                                        ecp->rxeacc._f++;
                                        }
 
-                                       if (sc & BD_ENET_RX_STATS) {
+                                       if (sc & BD_ENET_RX_ERRS) {
                                                ulong n;
 
                                                /*
@@ -1033,7 +1036,7 @@ eth_loopback_test (void)
                                                        ecp->rxeacc.cl++;
 
                                                bdp->cbd_sc &= \
-                                                       ~BD_ENET_RX_STATS;
+                                                       ~BD_ENET_RX_ERRS;
                                        }
                                        else {
                                                ushort datlen = bdp->cbd_datlen;