ar71xx: extend ethernet DMA stuck check to all ar724x (and newer) chips
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 12:59:26 +0000 (12:59 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 15 Jan 2016 12:59:26 +0000 (12:59 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Backport of r48227

SVN-Revision: 48245

target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c

index 7241f1452069a2998ec11f57d0ba2388e315d296..9bb099c8a6b80f92622f8e859ab52c276a48ebf6 100644 (file)
@@ -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;