aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-08-04 17:36:31 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-08-04 17:36:31 +0000
commitd715b0851d7693700e5619e7ae9656f57e8fff2b (patch)
tree2a4093f7d3ff050ddb5201fd7f2e5f81fb2449c2 /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
parent8268bc95d154223dc895d91d7145698b15d03e59 (diff)
downloadmaster-187ad058-d715b0851d7693700e5619e7ae9656f57e8fff2b.tar.gz
master-187ad058-d715b0851d7693700e5619e7ae9656f57e8fff2b.tar.bz2
master-187ad058-d715b0851d7693700e5619e7ae9656f57e8fff2b.zip
ar71xx: fix ethernet FIFO state corruption on ar7240
When starting/stopping DMA sometimes the FIFO state gets corrupted, leading to wildly fluctuating latencies or packet data corruption. Fix this by issuing a fast MAC reset as soon as the link is detected as up. Fixes #9689, #9405 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27896 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
index 9dcbf4a5b2..d5cc46c42a 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
@@ -351,6 +351,7 @@ static inline void ag71xx_check_reg_offset(struct ag71xx *ag, unsigned reg)
switch (reg) {
case AG71XX_REG_MAC_CFG1 ... AG71XX_REG_MAC_MFL:
case AG71XX_REG_MAC_IFCTL ... AG71XX_REG_INT_STATUS:
+ case AG71XX_REG_MII_CFG:
break;
default: