ath10k: Fix the race condition in firmware dump work queue
authorMaharaja Kennadyrajan <mkenna@codeaurora.org>
Thu, 26 Mar 2020 16:36:36 +0000 (18:36 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 6 Apr 2020 16:14:36 +0000 (19:14 +0300)
commit3d1c60460fb2823a19ead9e6ec8f184dd7271aa7
treea5b86afcca057f847b128a025ced70b55bdc7fb5
parent9556dfa28b4d84edfd5b96e684ed8e7a15a51b67
ath10k: Fix the race condition in firmware dump work queue

There is a race condition, when the user writes 'hw-restart' and
'hard' in the simulate_fw_crash debugfs file without any delay.
In the above scenario, the firmware dump work queue(scheduled by
'hard') should be handled gracefully, while the target is in the
'hw-restart'.

Tested HW: QCA9984
Tested FW: 10.4-3.9.0.2-00044

Co-developed-by: Govindaraj Saminathan <gsamin@codeaurora.org>
Signed-off-by: Govindaraj Saminathan <gsamin@codeaurora.org>
Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1585213077-28439-1-git-send-email-mkenna@codeaurora.org
drivers/net/wireless/ath/ath10k/pci.c