mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: move mcu queues to mt76_dev q_mcu array
Move mcu queue to a dedicated array q_mcu in mt76_dev structure. 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
b0eb7edcc6
commit
ccd62467d0
@@ -658,9 +658,13 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
|
||||
|
||||
mt76_worker_disable(&dev->tx_worker);
|
||||
netif_napi_del(&dev->tx_napi);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev->q_tx); i++)
|
||||
mt76_dma_tx_cleanup(dev, dev->q_tx[i], true);
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(dev->q_mcu); i++)
|
||||
mt76_dma_tx_cleanup(dev, dev->q_mcu[i], true);
|
||||
|
||||
mt76_for_each_q_rx(dev, i) {
|
||||
netif_napi_del(&dev->napi[i]);
|
||||
mt76_dma_rx_cleanup(dev, &dev->q_rx[i]);
|
||||
|
||||
Reference in New Issue
Block a user