mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: dma: rely on mt76_queue in mt76_dma_tx_cleanup signature
This is a preliminary patch to move data queues in mt76_phy and properly support dbdc Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
3ed4aad81c
commit
216cf8b285
+3
-3
@@ -163,13 +163,13 @@ static int mt76x02_poll_tx(struct napi_struct *napi, int budget)
|
||||
mt76x02_mac_poll_tx_status(dev, false);
|
||||
|
||||
for (i = MT_TXQ_MCU; i >= 0; i--)
|
||||
mt76_queue_tx_cleanup(dev, i, false);
|
||||
mt76_queue_tx_cleanup(dev, dev->mt76.q_tx[i], false);
|
||||
|
||||
if (napi_complete_done(napi, 0))
|
||||
mt76x02_irq_enable(dev, MT_INT_TX_DONE_ALL);
|
||||
|
||||
for (i = MT_TXQ_MCU; i >= 0; i--)
|
||||
mt76_queue_tx_cleanup(dev, i, false);
|
||||
mt76_queue_tx_cleanup(dev, dev->mt76.q_tx[i], false);
|
||||
|
||||
mt76_worker_schedule(&dev->mt76.tx_worker);
|
||||
|
||||
@@ -468,7 +468,7 @@ static void mt76x02_watchdog_reset(struct mt76x02_dev *dev)
|
||||
mt76_mcu_restart(dev);
|
||||
|
||||
for (i = 0; i < __MT_TXQ_MAX; i++)
|
||||
mt76_queue_tx_cleanup(dev, i, true);
|
||||
mt76_queue_tx_cleanup(dev, dev->mt76.q_tx[i], true);
|
||||
|
||||
mt76_for_each_q_rx(&dev->mt76, i) {
|
||||
mt76_queue_rx_reset(dev, i);
|
||||
|
||||
Reference in New Issue
Block a user