Commit b034fd6f authored by Arik Nemtsov's avatar Arik Nemtsov Committed by John W. Linville
Browse files

wlcore: always clear recovery flag during recovery_work



If recovery is called when the FW is off, we should clear the recovery
flag. Otherwise we risk booting the driver in permanent pending-recovery
state.

Signed-off-by: default avatarArik Nemtsov <arik@wizery.com>
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent aafec111
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -926,7 +926,6 @@ static void wl1271_recovery_work(struct work_struct *work)

	if (no_recovery) {
		wl1271_info("No recovery (chosen on module load). Fw will remain stuck.");
		clear_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags);
		goto out_unlock;
	}

@@ -971,6 +970,7 @@ static void wl1271_recovery_work(struct work_struct *work)
	return;
out_unlock:
	wl->watchdog_recovery = false;
	clear_bit(WL1271_FLAG_RECOVERY_IN_PROGRESS, &wl->flags);
	mutex_unlock(&wl->mutex);
}