Commit 1ede9500 authored by Arik Nemtsov's avatar Arik Nemtsov Committed by John W. Linville

wlcore: decrease warning verbosity during recovery

Silently ignore repetitive scheduling of recovery work and commands
being passed to the bus when the HW is not available. This can happen
many times during recovery and slow it down. It also spams the kernel
logs.
Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarEliad Peller <eliad@wizery.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 41ed1a78
...@@ -60,7 +60,7 @@ static int __wlcore_cmd_send(struct wl1271 *wl, u16 id, void *buf, ...@@ -60,7 +60,7 @@ static int __wlcore_cmd_send(struct wl1271 *wl, u16 id, void *buf,
u16 status; u16 status;
u16 poll_count = 0; u16 poll_count = 0;
if (WARN_ON(wl->state == WLCORE_STATE_RESTARTING && if (unlikely(wl->state == WLCORE_STATE_RESTARTING &&
id != CMD_STOP_FWLOGGER)) id != CMD_STOP_FWLOGGER))
return -EIO; return -EIO;
......
...@@ -782,10 +782,11 @@ static int wl12xx_fetch_firmware(struct wl1271 *wl, bool plt) ...@@ -782,10 +782,11 @@ static int wl12xx_fetch_firmware(struct wl1271 *wl, bool plt)
void wl12xx_queue_recovery_work(struct wl1271 *wl) void wl12xx_queue_recovery_work(struct wl1271 *wl)
{ {
WARN_ON(!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags));
/* Avoid a recursive recovery */ /* Avoid a recursive recovery */
if (wl->state == WLCORE_STATE_ON) { if (wl->state == WLCORE_STATE_ON) {
WARN_ON(!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY,
&wl->flags));
wl->state = WLCORE_STATE_RESTARTING; wl->state = WLCORE_STATE_RESTARTING;
set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags); set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags);
wl1271_ps_elp_wakeup(wl); wl1271_ps_elp_wakeup(wl);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment