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
commit4b75394056a77d90428e422464561297e2c091cd (patch)
tree19e7f459e3d415d0d669e6a8214fc0001b58b64c /target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
parentd2aeca6b6dbb96121b823200b15b6b2beae959f0 (diff)
downloadupstream-4b75394056a77d90428e422464561297e2c091cd.tar.gz
upstream-4b75394056a77d90428e422464561297e2c091cd.tar.bz2
upstream-4b75394056a77d90428e422464561297e2c091cd.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 SVN-Revision: 27896
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: