summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrhan K AKYILDIZ <oka@codeaurora.org>2017-06-21 13:36:10 -0700
committersnandini <snandini@codeaurora.org>2017-08-27 19:02:03 -0700
commit4cd3d9836403ce8e612aa2b33def85bc261cc25b (patch)
treebd45a6e2e81a7b7505ec0d6fce145abeffd39777
parentc682e1269cdd3a8c2216488a131625f4b2833e99 (diff)
qcacld-3.0: Add logs for target attach procedure
During target attach procedure, there are a number of messages sent to the FW. Some of these sends did not check return codes. Add return code checks and treat the codes accordingly. Change-Id: Ib515e040b6c7e2ecc23d2d422bb359e83342fcfa CRs-Fixed: 2064904
-rw-r--r--core/dp/htt/htt.c35
1 files changed, 32 insertions, 3 deletions
diff --git a/core/dp/htt/htt.c b/core/dp/htt/htt.c
index 34a09d0a4852..44f9cb4f8a27 100644
--- a/core/dp/htt/htt.c
+++ b/core/dp/htt/htt.c
@@ -601,14 +601,23 @@ QDF_STATUS htt_attach_target(htt_pdev_handle pdev)
QDF_STATUS status;
status = htt_h2t_ver_req_msg(pdev);
- if (status != QDF_STATUS_SUCCESS)
+ if (status != QDF_STATUS_SUCCESS) {
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: could not send h2t_ver_req msg",
+ __func__, __LINE__);
return status;
-
+ }
#if defined(HELIUMPLUS)
/*
* Send the frag_desc info to target.
*/
- htt_h2t_frag_desc_bank_cfg_msg(pdev);
+ status = htt_h2t_frag_desc_bank_cfg_msg(pdev);
+ if (status != QDF_STATUS_SUCCESS) {
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: could not send h2t_frag_desc_bank_cfg msg",
+ __func__, __LINE__);
+ return status;
+ }
#endif /* defined(HELIUMPLUS) */
@@ -622,8 +631,28 @@ QDF_STATUS htt_attach_target(htt_pdev_handle pdev)
*/
status = htt_h2t_rx_ring_rfs_cfg_msg(pdev);
+ if (status != QDF_STATUS_SUCCESS) {
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: could not send h2t_rx_ring_rfs_cfg msg",
+ __func__, __LINE__);
+ return status;
+ }
+
status = htt_h2t_rx_ring_cfg_msg(pdev);
+ if (status != QDF_STATUS_SUCCESS) {
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: could not send h2t_rx_ring_cfg msg",
+ __func__, __LINE__);
+ return status;
+ }
+
status = HTT_IPA_CONFIG(pdev, status);
+ if (status != QDF_STATUS_SUCCESS) {
+ QDF_TRACE(QDF_MODULE_ID_HTT, QDF_TRACE_LEVEL_ERROR,
+ "%s:%d: could not send h2t_ipa_uc_rsc_cfg msg",
+ __func__, __LINE__);
+ return status;
+ }
return status;
}