ar71xx: fix ethernet FIFO state corruption on ar7240
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Aug 2011 17:36:31 +0000 (17:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Aug 2011 17:36:31 +0000 (17:36 +0000)
commit571d12ab3ac4287d58a3abc791befa4e0ab3d907
tree2a4093f7d3ff050ddb5201fd7f2e5f81fb2449c2
parent27818ae52468960526f812b8629043ad72d8c7eb
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