>From 5d5a6bd882006f14c59b351f4324160115f818c0 Mon Sep 17 00:00:00 2001 Message-Id: <5d5a6bd882006f14c59b351f4324160115f818c0.1536590220.git.joabreu@synopsys.com> From: Jose Abreu Date: Mon, 10 Sep 2018 16:36:37 +0200 Subject: [PATCH] fixup_coalesce_2 Signed-off-by: Jose Abreu --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index 7875e81966fb..76a6196b3263 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -2262,9 +2262,12 @@ static void stmmac_tx_timer(struct timer_list *t) { struct stmmac_tx_queue *tx_q = from_timer(tx_q, t, txtimer); struct stmmac_priv *priv = tx_q->priv_data; + bool more; - stmmac_tx_clean(priv, ~0, tx_q->queue_index, NULL); tx_q->tx_timer_active = false; + stmmac_tx_clean(priv, ~0, tx_q->queue_index, &more); + if (more) + stmmac_tx_timer_arm(priv, tx_q->queue_index); } /** -- 2.7.4