mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
ath10k: destroy sdio workqueue while remove sdio module
[ Upstream commit 3ed39f8e74 ]
The workqueue need to flush and destory while remove sdio module,
otherwise it will have thread which is not destory after remove
sdio modules.
Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00007-QCARMSWP-1.
Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0c2f0afee5
commit
0071ff72a4
@@ -2081,6 +2081,9 @@ static void ath10k_sdio_remove(struct sdio_func *func)
|
||||
cancel_work_sync(&ar_sdio->wr_async_work);
|
||||
ath10k_core_unregister(ar);
|
||||
ath10k_core_destroy(ar);
|
||||
|
||||
flush_workqueue(ar_sdio->workqueue);
|
||||
destroy_workqueue(ar_sdio->workqueue);
|
||||
}
|
||||
|
||||
static const struct sdio_device_id ath10k_sdio_devices[] = {
|
||||
|
||||
Reference in New Issue
Block a user