mt76: move netif_napi_del in mt76_dma_cleanup
Move netif_napi_del in mt76_dma_cleanup routine since it is done by all drivers Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
8357f0dcd8
commit
4875e34679
|
@ -588,6 +588,7 @@ void mt76_dma_cleanup(struct mt76_dev *dev)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
netif_napi_del(&dev->tx_napi);
|
||||||
for (i = 0; i < ARRAY_SIZE(dev->q_tx); i++)
|
for (i = 0; i < ARRAY_SIZE(dev->q_tx); i++)
|
||||||
mt76_dma_tx_cleanup(dev, i, true);
|
mt76_dma_tx_cleanup(dev, i, true);
|
||||||
|
|
||||||
|
|
|
@ -250,6 +250,5 @@ void mt7603_dma_cleanup(struct mt7603_dev *dev)
|
||||||
MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE);
|
MT_WPDMA_GLO_CFG_TX_WRITEBACK_DONE);
|
||||||
|
|
||||||
tasklet_kill(&dev->mt76.tx_tasklet);
|
tasklet_kill(&dev->mt76.tx_tasklet);
|
||||||
netif_napi_del(&dev->mt76.tx_napi);
|
|
||||||
mt76_dma_cleanup(&dev->mt76);
|
mt76_dma_cleanup(&dev->mt76);
|
||||||
}
|
}
|
||||||
|
|
|
@ -220,6 +220,5 @@ void mt7615_dma_cleanup(struct mt7615_dev *dev)
|
||||||
mt76_set(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_SW_RESET);
|
mt76_set(dev, MT_WPDMA_GLO_CFG, MT_WPDMA_GLO_CFG_SW_RESET);
|
||||||
|
|
||||||
tasklet_kill(&dev->mt76.tx_tasklet);
|
tasklet_kill(&dev->mt76.tx_tasklet);
|
||||||
netif_napi_del(&dev->mt76.tx_napi);
|
|
||||||
mt76_dma_cleanup(&dev->mt76);
|
mt76_dma_cleanup(&dev->mt76);
|
||||||
}
|
}
|
||||||
|
|
|
@ -335,7 +335,6 @@ static void mt76x02_dma_enable(struct mt76x02_dev *dev)
|
||||||
void mt76x02_dma_cleanup(struct mt76x02_dev *dev)
|
void mt76x02_dma_cleanup(struct mt76x02_dev *dev)
|
||||||
{
|
{
|
||||||
tasklet_kill(&dev->mt76.tx_tasklet);
|
tasklet_kill(&dev->mt76.tx_tasklet);
|
||||||
netif_napi_del(&dev->mt76.tx_napi);
|
|
||||||
mt76_dma_cleanup(&dev->mt76);
|
mt76_dma_cleanup(&dev->mt76);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(mt76x02_dma_cleanup);
|
EXPORT_SYMBOL_GPL(mt76x02_dma_cleanup);
|
||||||
|
|
Loading…
Reference in New Issue