diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-13 16:22:05 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-13 16:22:05 +0000 |
commit | cf2cf43717adc3ae3134514c8f4130cf41e5979a (patch) | |
tree | 812dd851cbe309d6da083ae8050991e232ba9672 | |
parent | abc99463b4585b1efe3f821e6c37535829bb64ae (diff) | |
download | master-31e0f0ae-cf2cf43717adc3ae3134514c8f4130cf41e5979a.tar.gz master-31e0f0ae-cf2cf43717adc3ae3134514c8f4130cf41e5979a.tar.bz2 master-31e0f0ae-cf2cf43717adc3ae3134514c8f4130cf41e5979a.zip |
ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 48227
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c index 31b38d7717..84d2cad839 100644 --- a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c +++ b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c @@ -919,7 +919,7 @@ static int ag71xx_tx_packets(struct ag71xx *ag, bool flush) struct sk_buff *skb = ring->buf[i].skb; if (!flush && !ag71xx_desc_empty(desc)) { - if (pdata->is_ar7240 && + if (pdata->is_ar724x && ag71xx_check_dma_stuck(ag, ring->buf[i].timestamp)) schedule_work(&ag->restart_work); break; |