Skip to content

Commit

Permalink
ath10k: destroy sdio workqueue while remove sdio module
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wen Gong authored and Kalle Valo committed Jun 28, 2019
1 parent bd1a4ac commit 3ed39f8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath10k/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -2097,6 +2097,9 @@ static void ath10k_sdio_remove(struct sdio_func *func)

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[] = {
Expand Down

0 comments on commit 3ed39f8

Please sign in to comment.