qcacmn: Increment htc runtime cnt prior to hif_send_head
HTC runtime count is incremented after posting the HTT ver req message to CE4. There could be possibility of processing the ver response message from FW even before htc_runtime_cnt is incremented. This can casue RTPM put to not happen causing imbalance in get/put count. Fix is to increment htc_runtime_cnt before enqueuing the HTT message to CE. Change-Id: Ib9b69910cd14193c41ecfee804b390f8a6cdef49 CRs-Fixed: 2794451
This commit is contained in:

committed by
snandini

parent
5da344f9b7
commit
b2fa2a1dbd
@@ -4571,6 +4571,8 @@ static void dp_htt_t2h_msg_handler(void *context, HTC_PACKET *pkt)
|
||||
*/
|
||||
if (htc_dec_return_runtime_cnt(soc->htc_soc) >= 0)
|
||||
htc_pm_runtime_put(soc->htc_soc);
|
||||
else
|
||||
soc->stats.htt_ver_req_put_skip++;
|
||||
soc->tgt_ver.major = HTT_VER_CONF_MAJOR_GET(*msg_word);
|
||||
soc->tgt_ver.minor = HTT_VER_CONF_MINOR_GET(*msg_word);
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_INFO_LOW,
|
||||
|
Reference in New Issue
Block a user