From ffccb48c5082b2c6f43a0235b77b62ca388810f0 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Fri, 9 Nov 2018 13:43:58 +0100 Subject: [PATCH] mt76: do not wake tx queues during flush While the queue is being cleaned up, the stack must not attempt to add any extra packets Signed-off-by: Felix Fietkau --- dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dma.c b/dma.c index 3e066486..710a77fc 100644 --- a/dma.c +++ b/dma.c @@ -168,7 +168,7 @@ mt76_dma_tx_cleanup(struct mt76_dev *dev, enum mt76_txq_id qid, bool flush) if (entry.txwi) { mt76_put_txwi(dev, entry.txwi); - wake = true; + wake = !flush; } if (!flush && q->tail == last)