Kaynağa Gözat

qcacld-3.0: Use htc_pm_runtime put/get apis

The htc_pm_runtime provide a convenience wrapper arround
the hif modules put/get apis

Change-Id: Ic2ef437390501e269278e68aa3a219364de8b2c0
CRs-Fixed: 1058274
Houston Hoffman 8 yıl önce
ebeveyn
işleme
c2c4762062
2 değiştirilmiş dosya ile 5 ekleme ve 5 silme
  1. 4 4
      core/dp/htt/htt_t2h.c
  2. 1 1
      core/dp/txrx/ol_tx_send.c

+ 4 - 4
core/dp/htt/htt_t2h.c

@@ -165,7 +165,7 @@ void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
 	switch (msg_type) {
 	case HTT_T2H_MSG_TYPE_VERSION_CONF:
 	{
-		qdf_runtime_pm_put();
+		htc_pm_runtime_get(pdev->htc_pdev);
 		pdev->tgt_ver.major = HTT_VER_CONF_MAJOR_GET(*msg_word);
 		pdev->tgt_ver.minor = HTT_VER_CONF_MINOR_GET(*msg_word);
 		qdf_print
@@ -328,7 +328,7 @@ void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
 			ol_tx_single_completion_handler(pdev->txrx_pdev,
 							compl_msg->status,
 							compl_msg->desc_id);
-			qdf_runtime_pm_put();
+			htc_pm_runtime_put(pdev->htc_pdev);
 			HTT_TX_SCHED(pdev);
 		} else {
 			qdf_print("Ignoring HTT_T2H_MSG_TYPE_MGMT_TX_COMPL_IND indication");
@@ -344,7 +344,7 @@ void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
 		cookie |= ((uint64_t) (*(msg_word + 2))) << 32;
 
 		stats_info_list = (uint8_t *) (msg_word + 3);
-		qdf_runtime_pm_put();
+		htc_pm_runtime_put(pdev->htc_pdev);
 		ol_txrx_fw_stats_handler(pdev->txrx_pdev, cookie,
 					 stats_info_list);
 		break;
@@ -387,7 +387,7 @@ void htt_t2h_lp_msg_handler(void *context, qdf_nbuf_t htt_t2h_msg,
 		uint8_t *op_msg_buffer;
 		uint8_t *msg_start_ptr;
 
-		qdf_runtime_pm_put();
+		htc_pm_runtime_put(pdev->htc_pdev);
 		msg_start_ptr = (uint8_t *) msg_word;
 		op_code =
 			HTT_WDI_IPA_OP_RESPONSE_OP_CODE_GET(*msg_word);

+ 1 - 1
core/dp/txrx/ol_tx_send.c

@@ -556,7 +556,7 @@ ol_tx_completion_handler(ol_txrx_pdev_handle pdev,
 			QDF_DP_TRACE_FREE_PACKET_PTR_RECORD,
 			qdf_nbuf_data_addr(netbuf),
 			sizeof(qdf_nbuf_data(netbuf)), tx_desc->id, status));
-		qdf_runtime_pm_put();
+		htc_pm_runtime_put(pdev->htt_pdev->htc_pdev);
 		ol_tx_desc_update_group_credit(pdev, tx_desc_id, 1, 0, status);
 		/* Per SDU update of byte count */
 		byte_cnt += qdf_nbuf_len(netbuf);