ath10k: skip the wait for completion to recovery in shutdown path
authorYoughandhar Chintala <youghand@codeaurora.org>
Wed, 24 Feb 2021 07:00:10 +0000 (09:00 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 9 Mar 2021 10:48:47 +0000 (12:48 +0200)
commit018e3fa8e7ff087629e5285cc14d1a6ca9bebc8b
tree8e2d3dd9136d44bda95836f0ab01613178b24e50
parente3de5bb7ac1a4cb262f8768924fd3ef6182b10bb
ath10k: skip the wait for completion to recovery in shutdown path

Currently in the shutdown callback we wait for recovery to complete
before freeing up the resources. This results in additional two seconds
delay during the shutdown and thereby increase the shutdown time.

As an attempt to take less time during shutdown, remove the wait for
recovery completion in the shutdown callback and added an API to freeing
the reosurces in which they were common for shutdown and removing
the module.

Tested-on: WCN3990 hw1.0 SNOC WLAN.HL.3.1-01040-QCAHLSWMTPLZ-1

Signed-off-by: Youghandhar Chintala <youghand@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210223142908.23374-1-youghand@codeaurora.org
drivers/net/wireless/ath/ath10k/snoc.c