فهرست منبع

qcacmn: remove QDF_ASSERT warning for htc packets sending

If WMI cmd sending and runtime PM suspending happened at same time,
there is chance get_htc_send_packets_credit_based() report warning
to dmesg, this warning info is not much helpful.

Use one line print instead to avoid confusion.

Change-Id: Ia71657876b25cb180abba28b107553a99d015358
CRs-Fixed: 3583473
Jinwei Chen 1 سال پیش
والد
کامیت
dcad508db8
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      htc/htc_send.c

+ 5 - 1
htc/htc_send.c

@@ -1200,7 +1200,11 @@ static void get_htc_send_packets_credit_based(HTC_TARGET *target,
 			ret = hif_rtpm_get(HIF_RTPM_GET_ASYNC, rtpm_code);
 			if (ret) {
 				/* bus suspended, runtime resume issued */
-				QDF_ASSERT(HTC_PACKET_QUEUE_DEPTH(pQueue) == 0);
+				if (HTC_PACKET_QUEUE_DEPTH(pQueue) > 0)
+					AR_DEBUG_PRINTF(ATH_DEBUG_WARN,
+							(" pQueue depth: %d\n",
+							 HTC_PACKET_QUEUE_DEPTH(pQueue)));
+
 				pPacket = htc_get_pkt_at_head(tx_queue);
 				if (!pPacket)
 					break;