Skip to content

Commit

Permalink
wlcore: wakeup from ELP before starting recovery
Browse files Browse the repository at this point in the history
Make sure the FW is awake when entering recovery. This is useful for
reading the FW panic log and also some FW registers giving us crash
report stats.

We must do this before interrupts are disabled since we rely on an
interrupt to complete the wakeup.

If the wakeup fails, continue recovery normally. All read/writes will be
blocked and won't do any harm.

Signed-off-by: Barak Bercovitz <barak@wizery.com>
  • Loading branch information
Barak Bercovitz authored and ariknem committed Aug 13, 2013
1 parent ba80cb9 commit e611d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wireless/ti/wlcore/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ void wl12xx_queue_recovery_work(struct wl1271 *wl)
if (wl->state == WLCORE_STATE_ON) {
wl->state = WLCORE_STATE_RESTARTING;
set_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags);
wl1271_ps_elp_wakeup(wl);
wlcore_disable_interrupts_nosync(wl);
#ifdef CONFIG_HAS_WAKELOCK
/* give us a grace period for recovery */
Expand Down

0 comments on commit e611d18

Please sign in to comment.