rtw88: pci: reset ring index when release skbs in tx ring
authorChin-Yen Lee <timlee@realtek.com>
Thu, 19 Dec 2019 08:58:10 +0000 (16:58 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 26 Jan 2020 15:36:59 +0000 (17:36 +0200)
When skbs queued for each TX ring are relased in PCI stop flow,
the ring index should be reset at the same time.

Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/pci.c

index a58e827..068f1be 100644 (file)
@@ -506,6 +506,7 @@ static void rtw_pci_dma_release(struct rtw_dev *rtwdev, struct rtw_pci *rtwpci)
        struct rtw_pci_tx_ring *tx_ring;
        u8 queue;
 
+       rtw_pci_reset_trx_ring(rtwdev);
        for (queue = 0; queue < RTK_MAX_TX_QUEUE_NUM; queue++) {
                tx_ring = &rtwpci->tx_rings[queue];
                rtw_pci_free_tx_ring_skbs(rtwdev, tx_ring);