mwifiex: fix empty TX ring check for PCIe8897 while unloading driver
PATCH 1/1 mwifiex: fix empty TX ring check for PCIe8897 while unloading driver
From: Avinash Patil <[email protected]>
While unloading driver, we free all pending TX packets by flushing TX ring. There is unhandled case for PCIE8897 while checking for ring empty condition.
This patch adds the handling by calling mwifiex_pcie_txbd_empty().
Signed-off-by Avinash Patil <[email protected]>
Signed-off-by Yogesh Ashok Powar <[email protected]>
Signed-off-by Bing Zhao <[email protected]>
--- drivers/net/wireless/mwifiex/pcie.c | 5 +---- 1 files changed, 1 insertions(+), 4 deletions(-)
drivers/net/wireless/mwifiex/pcie.c +1 -4
@@ -1023,10 +1023,7 @@ static int mwifiex_pcie_send_data_complete(struct mwifiex_adapter *adapter) adapter->data_sent = false;if (card->txbd_flush) { -if (((card->txbd_wrptr & reg->tx_mask) == - (card->txbd_rdptr & reg->tx_mask)) && - ((card->txbd_wrptr & reg->tx_rollover_ind) != - (card->txbd_rdptr & reg->tx_rollover_ind))) +if (mwifiex_pcie_txbd_empty (card, card->txbd_rdptr)) card->txbd_flush =0 ;else mwifiex_clean_pcie_ring_buf (adapter);
Signature · 1 line
1.7.0.2