ag71xx: fix memory corruption issues on ar7240 on ethernet start/stop
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Aug 2011 17:36:27 +0000 (17:36 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Thu, 4 Aug 2011 17:36:27 +0000 (17:36 +0000)
commit27818ae52468960526f812b8629043ad72d8c7eb
treeb54751568f45b9ef4b3feb77b866856dc732039d
parent3fe5c4149be89260eb8870c0272d512197b24c99
ag71xx: fix memory corruption issues on ar7240 on ethernet start/stop

When the DMA engine state gets corrupted due to a hardware issues, it
often won't stop rx until a full reset is issued. In that case the hardware
must keep a valid descriptor, otherwise it will write to random places in
system RAM, triggering random crashes. To fix this, keep a dummy descriptor
without a buffer that keeps the DMA engine in a sane state until the reset
is done

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27895 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx.h
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_main.c