ath10k: cancel rx worker in hif_stop for SDIO
authorWen Gong <wgong@codeaurora.org>
Thu, 5 Nov 2020 06:33:56 +0000 (14:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 7 Nov 2020 07:58:03 +0000 (09:58 +0200)
commit9501bc2b16b5850bcf6d87c985f1021d83cefab1
treea91e52971a59a6bbd3f846874defdcebb0a47d36
parentee06fcb98dcdc2713c83c29e9101b007a825cd7f
ath10k: cancel rx worker in hif_stop for SDIO

The rx worker of SDIO should be cancelled after disable interrupt, and
release rx sk_buff in queue, otherwise the rx worker maybe still run
after hif_stop. And it should be cancelled before napi_synchronize in
hif_stop, because the rx worker of SDIO will call napi_schedule, it
should have no napi_schedule before napi_synchronize, otherwise it
lead napi_synchronize wait untill napi_complete.

Tested-on: QCA6174 hw3.2 SDIO WLAN.RMH.4.4.1-00049

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1604558036-4056-1-git-send-email-wgong@codeaurora.org
drivers/net/wireless/ath/ath10k/sdio.c