diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-15 12:59:26 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-15 12:59:26 +0000 |
commit | 05eac4ae0bbbea9cda98a22d36aac4cc8fec9bdd (patch) | |
tree | 2bd5229643770a7c98cb502438c0d10af617355b /target | |
parent | ccf3d32f8847a5426aba132c0860761009c90441 (diff) | |
download | upstream-05eac4ae0bbbea9cda98a22d36aac4cc8fec9bdd.tar.gz upstream-05eac4ae0bbbea9cda98a22d36aac4cc8fec9bdd.tar.bz2 upstream-05eac4ae0bbbea9cda98a22d36aac4cc8fec9bdd.zip |
ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48227
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@48245 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-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 7241f14520..9bb099c8a6 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; |