From 439847db0d5d765bf46be11e9c1532ad3b5c282e Mon Sep 17 00:00:00 2001 From: Yue Ma Date: Tue, 2 Dec 2014 15:48:07 -0800 Subject: 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 --- CORE/SERVICES/WMA/wma.c | 8 ++++++-- 1 file 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; } -- cgit v1.2.3