wil6210: increase firmware ready timeout
authorHamad Kadmany <hkadmany@codeaurora.org>
Tue, 21 Apr 2020 12:40:01 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Apr 2020 05:59:08 +0000 (07:59 +0200)
[ Upstream commit 6ccae584014ef7074359eb4151086beef66ecfa9 ]

Firmware ready event may take longer than
current timeout in some scenarios, for example
with multiple RFs connected where each
requires an initial calibration.

Increase the timeout to support these scenarios.

Signed-off-by: Hamad Kadmany <hkadmany@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/ath/wil6210/main.c

index f8bce58d48ccd2e01ed0e60f17c4718910cf9201..12b4c6f003726243d29e90d515b879739fbc6c81 100644 (file)
@@ -803,7 +803,7 @@ static void wil_bl_crash_info(struct wil6210_priv *wil, bool is_err)
 
 static int wil_wait_for_fw_ready(struct wil6210_priv *wil)
 {
-       ulong to = msecs_to_jiffies(1000);
+       ulong to = msecs_to_jiffies(2000);
        ulong left = wait_for_completion_timeout(&wil->wmi_ready, to);
 
        if (0 == left) {