diff options
author | Lorenzo Bianconi <lorenzo@kernel.org> | 2019-04-02 11:47:58 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2019-05-01 13:03:58 +0200 |
commit | 6ca66722a887e38f82b50a4b41e43b6af0794ed2 (patch) | |
tree | f4c0a86a33d9696bdcc0ab2dea9c9547d3965e63 /drivers/net/wireless/mediatek/mt76/dma.c | |
parent | cfaae9e67cf13011ce6d6ddd61eacff8f72b7bad (diff) | |
download | linux-stable-6ca66722a887e38f82b50a4b41e43b6af0794ed2.tar.gz linux-stable-6ca66722a887e38f82b50a4b41e43b6af0794ed2.tar.bz2 linux-stable-6ca66722a887e38f82b50a4b41e43b6af0794ed2.zip |
mt76: dma: introduce skb field in mt76_txwi_cache
Introduce skb field in mt76_txwi_cache. Moreover add txwi_flags
to mt76_driver_ops since new chipsets will release mt76_txwi_cache/skbs
at tx completion instead of dma one.
This is a preliminary patch to add mt7615 support
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76/dma.c')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/dma.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/dma.c b/drivers/net/wireless/mediatek/mt76/dma.c index 5c6f5f5786e7..4ffee2e208b2 100644 --- a/drivers/net/wireless/mediatek/mt76/dma.c +++ b/drivers/net/wireless/mediatek/mt76/dma.c @@ -174,7 +174,8 @@ mt76_dma_tx_cleanup(struct mt76_dev *dev, enum mt76_txq_id qid, bool flush) dev->drv->tx_complete_skb(dev, qid, &entry); if (entry.txwi) { - mt76_put_txwi(dev, entry.txwi); + if (!(dev->drv->txwi_flags & MT_TXWI_NO_FREE)) + mt76_put_txwi(dev, entry.txwi); wake = !flush; } |