atheros: backport an mvswitch related fix to the ar2313 ethernet driver to fix ethern...
authorFelix Fietkau <nbd@openwrt.org>
Sun, 11 Oct 2009 18:22:47 +0000 (18:22 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 11 Oct 2009 18:22:47 +0000 (18:22 +0000)
SVN-Revision: 18035

target/linux/atheros/files/drivers/net/ar2313/ar2313.c

index 727d190..c89d7d6 100644 (file)
@@ -922,8 +922,7 @@ static int ar2313_rx_int(struct net_device *dev)
                printk("RX descr  %08x\n", rxdesc->descr);
 #endif
 
-               if ((status & (DMA_RX_ERROR | DMA_RX_ERR_LENGTH)) &&
-                       (!(status & DMA_RX_LONG))) {
+               if ((status & DMA_RX_ERROR) && !(status & DMA_RX_LONG)) {
 #if DEBUG_RX
                        printk("%s: rx ERROR %08x\n", __FUNCTION__, status);
 #endif