qtnfmac: fix releasing Tx/Rx data buffers
authorSergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Sat, 10 Feb 2018 14:04:17 +0000 (17:04 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 27 Feb 2018 16:18:42 +0000 (18:18 +0200)
commit1d5e3b90ab0160375d15dd8f322c1bfdb8a83e1e
tree09b4ba172a8b19b6c2b098d67ea237bd23daa466
parentdcdd54c2bcae086a5834d3f823914d7535843b17
qtnfmac: fix releasing Tx/Rx data buffers

Add missing PCI unmap for Tx buffers and release all buffers explicitly.
Managed release using devm_add_action is not suitable for qtnfmac Tx/Rx
data buffers. The reason is in ordering and dependencies: buffers
should be released after transmission is stopped but before PCI
device resources and DMA allocations are released.

Signed-off-by: Sergey Matyukevich <sergey.matyukevich.os@quantenna.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c