ar71xx: fix ethernet FIFO state corruption on ar7240
authorFelix Fietkau <nbd@openwrt.org>
Thu, 4 Aug 2011 17:36:31 +0000 (17:36 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Thu, 4 Aug 2011 17:36:31 +0000 (17:36 +0000)
commitd715b0851d7693700e5619e7ae9656f57e8fff2b
tree2a4093f7d3ff050ddb5201fd7f2e5f81fb2449c2
parent8268bc95d154223dc895d91d7145698b15d03e59
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
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c