diff options
| author | Yue Ma <yuem@qca.qualcomm.com> | 2014-12-02 15:48:07 -0800 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2014-12-04 14:55:50 +0530 |
| commit | 439847db0d5d765bf46be11e9c1532ad3b5c282e (patch) | |
| tree | 6bfcea40eebdf6cf901da99a290fbc619d8e220a | |
| parent | 374124e9d42814b1c159967f6447a7178d081409 (diff) | |
qca_cld: Panic when host fails to receive the ACK of D0WOW enable command
Add panic when host driver timeouts on receiving the HTC ACK of
D0WOW enable command. This will help to debug why the timeout happens.
Change-Id: I8f78906dec88b941c8af56bd22103f9733466867
CRs-fixed: 765522
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index c8b90d2dc054..6dcf7ae60dc1 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -17257,7 +17257,7 @@ VOS_STATUS wma_enable_d0wow_in_fw(tp_wma_handle wma) if (host_credits < WMI_WOW_REQUIRED_CREDITS) { WMA_LOGE("%s: Doesn't have enough credits to Post " "WMI_D0_WOW_ENABLE_DISABLE_CMDID! " - "Credits: %d, pending_cmds: %d\n", __func__, + "Credits: %d, pending_cmds: %d", __func__, host_credits, wmi_pending_cmds); goto error; } @@ -17272,7 +17272,11 @@ VOS_STATUS wma_enable_d0wow_in_fw(tp_wma_handle wma) vos_status = vos_wait_single_event(&wma->target_suspend, WMA_TGT_SUSPEND_COMPLETE_TIMEOUT); if (VOS_STATUS_SUCCESS != vos_status) { - WMA_LOGE("Failed to receive D0-WoW enable ACK from FW!"); + WMA_LOGE("Failed to receive D0-WoW enable HTC ACK from FW! " + "Credits: %d, pending_cmds: %d", + wmi_get_host_credits(wma->wmi_handle), + wmi_get_pending_cmds(wma->wmi_handle)); + VOS_BUG(0); return VOS_STATUS_E_FAILURE; } |
