wil6210: minimize the time that mem_lock is held
authorAlexei Avshalom Lazar <ailizaro@codeaurora.org>
Wed, 18 Dec 2019 18:10:07 +0000 (20:10 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 19 Dec 2019 16:15:44 +0000 (18:15 +0200)
commitd3214d42806676e47eec2e5a5ed041ec40b9dd35
treee40f8d57553f9c5948ad749d74ab6be1fc3c465f
parent7be3c2331d506a61da78cfe426a037a3c7de7c71
wil6210: minimize the time that mem_lock is held

mem_lock is taken for the entire wil_reset().
Optimize this by taking mem_lock just before device is
being reset and release the lock after FW download.

Signed-off-by: Alexei Avshalom Lazar <ailizaro@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wil6210/main.c