Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ath10k: destroy sdio workqueue while remove sdio module

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>

authored by

Wen Gong and committed by
Kalle Valo
3ed39f8e bd1a4ac5

+3
+3
drivers/net/wireless/ath/ath10k/sdio.c
··· 2097 2097 2098 2098 ath10k_core_unregister(ar); 2099 2099 ath10k_core_destroy(ar); 2100 + 2101 + flush_workqueue(ar_sdio->workqueue); 2102 + destroy_workqueue(ar_sdio->workqueue); 2100 2103 } 2101 2104 2102 2105 static const struct sdio_device_id ath10k_sdio_devices[] = {