Skip to content

Commit 680c605

Browse files
Eyal ShapiraLuciano Coelho
authored andcommitted
wlcore: print stack trace in every recovery
As recovery queuing can now occur from multiple code paths it's convenient to know what triggered it in all cases other than an intended recovery which is part of the switch between single role to multi role. Signed-off-by: Eyal Shapira <eyal@wizery.com> Signed-off-by: Luciano Coelho <coelho@ti.com>
1 parent 6c15c1a commit 680c605

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/net/wireless/ti/wlcore/cmd.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ int wl1271_cmd_send(struct wl1271 *wl, u16 id, void *buf, size_t len,
124124
return 0;
125125

126126
fail:
127-
WARN_ON(1);
128127
wl12xx_queue_recovery_work(wl);
129128
return ret;
130129
}

‎drivers/net/wireless/ti/wlcore/main.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,8 @@ static void wl1271_fetch_nvs(struct wl1271 *wl)
772772

773773
void wl12xx_queue_recovery_work(struct wl1271 *wl)
774774
{
775+
WARN_ON(!test_bit(WL1271_FLAG_INTENDED_FW_RECOVERY, &wl->flags));
776+
775777
/* Avoid a recursive recovery */
776778
if (!test_and_set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags)) {
777779
wlcore_disable_interrupts_nosync(wl);

0 commit comments

Comments
 (0)