qcacmn: block wmi cmd once wow enable ack failed

If wow enable ack failed, block all the wmi cmd until
subsystem recovery.

Change-Id: I834623ffa0b2e3bb604bb7ca90fabf7a839642b7
CRs-Fixed: 3469680
This commit is contained in:
Jingxiang Ge
2023-04-18 17:04:46 +08:00
committed by Madan Koyyalamudi
parent 7ab8cc59ee
commit 611a60de98
3 changed files with 54 additions and 0 deletions

View File

@@ -737,6 +737,34 @@ static inline bool wmi_get_runtime_pm_inprogress(wmi_unified_t wmi_handle)
}
#endif
/**
* wmi_set_wow_enable_ack_failed() - set wow enable ack failed status
* if wow enable ack failed, which means host and fw have some problem
* to exchange wmi cmd. set indication here and block wmi cmds.
* the cmds can be sent again after wmi re-init in subsystem recovery.
* @wmi_handle: wmi context
*
* return: none
*/
void wmi_set_wow_enable_ack_failed(wmi_unified_t wmi_handle);
/**
* wmi_clear_wow_enable_ack_failed() - clear wow enable ack failed status
* explicitly clear this status when wmi close of SSR
* @wmi_handle: wmi context
*
* return: none
*/
void wmi_clear_wow_enable_ack_failed(wmi_unified_t wmi_handle);
/**
* wmi_has_wow_enable_ack_failed() - get wow enable ack failed status
* @wmi_handle: wmi context
*
* Return: true if wow enable ack already failed. other false
*/
bool wmi_has_wow_enable_ack_failed(wmi_unified_t wmi_handle);
/**
* wmi_unified_get_soc_handle: Get WMI SoC handle
* @wmi_handle: WMI context got from wmi_attach