diff options
Diffstat (limited to 'drivers/net/stmmac/stmmac_main.c')
-rw-r--r-- | drivers/net/stmmac/stmmac_main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/stmmac/stmmac_main.c b/drivers/net/stmmac/stmmac_main.c index 40813f0b5339..508fba8fa07f 100644 --- a/drivers/net/stmmac/stmmac_main.c +++ b/drivers/net/stmmac/stmmac_main.c | |||
@@ -922,8 +922,7 @@ static void stmmac_dma_interrupt(struct net_device *dev) | |||
922 | DBG(intr, INFO, "CSR5[15] DMA ABNORMAL IRQ: "); | 922 | DBG(intr, INFO, "CSR5[15] DMA ABNORMAL IRQ: "); |
923 | if (unlikely(intr_status & DMA_STATUS_UNF)) { | 923 | if (unlikely(intr_status & DMA_STATUS_UNF)) { |
924 | DBG(intr, INFO, "transmit underflow\n"); | 924 | DBG(intr, INFO, "transmit underflow\n"); |
925 | if (unlikely(tc != SF_DMA_MODE) | 925 | if (unlikely(tc != SF_DMA_MODE) && (tc <= 256)) { |
926 | && (tc <= 256)) { | ||
927 | /* Try to bump up the threshold */ | 926 | /* Try to bump up the threshold */ |
928 | tc += 64; | 927 | tc += 64; |
929 | priv->mac_type->ops->dma_mode(ioaddr, tc, | 928 | priv->mac_type->ops->dma_mode(ioaddr, tc, |