wcn36xx: Put DXE block into reset before freeing memory
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Fri, 5 Nov 2021 12:21:52 +0000 (12:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:03:06 +0000 (11:03 +0100)
commitd97aa008ebc0bde2d96a7097ef8ba1a188fafbb3
treef97ea6b6ed9ce34ea55acf31a3a1449e24db1cdf
parent514c1df9dfa9357238f9aefebc74667fa5ea741e
wcn36xx: Put DXE block into reset before freeing memory

[ Upstream commit ed04ea76e69e7194f7489cebe23a32a68f39218d ]

When deiniting the DXE hardware we should reset the block to ensure there
is no spurious DMA write transaction from the downstream WCNSS to upstream
MSM at a skbuff address we will have released.

Fixes: 8e84c2582169 ("wcn36xx: mac80211 driver for Qualcomm WCN3660/WCN3680 hardware")
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211105122152.1580542-4-bryan.odonoghue@linaro.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/wcn36xx/dxe.c