qcacld-3.0: Avoid bug on after wow suspend if self recovery is enabled

Avoid bug on in PMO after FW response timeoout. Invoke host initiated
self recovery callback instead.

Change-Id: I4d38bdaba4a5b2ed02002b2711570109fe242848
CRs-Fixed: 2070815
This commit is contained in:
Rajeev Kumar 2017-07-26 11:31:41 -07:00 • committed by snandini
commit b209e82449

View file

@ -635,7 +635,7 @@ QDF_STATUS pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
pmo_tgt_psoc_get_pending_cmnds(psoc));
pmo_tgt_update_target_suspend_flag(psoc, false);
status = QDF_STATUS_E_FAILURE;
QDF_BUG(0);
qdf_trigger_self_recovery();
goto out;
}
@ -653,12 +653,7 @@ QDF_STATUS pmo_core_enable_wow_in_fw(struct wlan_objmgr_psoc *psoc,
pmo_err("No Credits after HTC ACK:%d, pending_cmds:%d,"
"cannot resume back", host_credits, wmi_pending_cmds);
htc_dump_counter_info(pmo_core_psoc_get_htc_handle(psoc));
/*
if (!cds_is_driver_recovering())
QDF_BUG(0);
else
pmo_err("SSR in progress, ignore no credit issue");
*/
qdf_trigger_self_recovery();
}
pmo_debug("WOW enabled successfully in fw: credits:%d pending_cmds: %d",
host_credits, wmi_pending_cmds);
@ -953,7 +948,7 @@ QDF_STATUS pmo_core_psoc_send_host_wakeup_ind_to_fw(
pmo_err("Pending commands %d credits %d",
pmo_tgt_psoc_get_pending_cmnds(psoc),
pmo_tgt_psoc_get_host_credits(psoc));
QDF_BUG(0);
qdf_trigger_self_recovery();
} else {
pmo_debug("Host wakeup received");
}
@ -1026,7 +1021,7 @@ QDF_STATUS pmo_core_psoc_resume_target(struct wlan_objmgr_psoc *psoc,
pmo_fatal("Pending commands %d credits %d",
pmo_tgt_psoc_get_pending_cmnds(psoc),
pmo_tgt_psoc_get_host_credits(psoc));
QDF_BUG(0);
qdf_trigger_self_recovery();
} else {
pmo_debug("Host wakeup received");
}