소스 검색

qcacld-3.0: Fix refill thread getting stuck in suspend state

Currently during wlan suspend DP refill thread is suspended first
then RX thread is suspended but if RX thread suspend fails then
refill thread should be resumed if not refill thread will be stuck
in suspend state forever.

To avoid refill thread getting stuck in suspend state, resume
refill thread when RX thread suspend failure is encountered.

Change-Id: I2dfdfa881bb3cb660b83067c796d3a833b86ef5f
CRs-Fixed: 3054903
Karthik Kantamneni 3 년 전
부모
커밋
f3f45e867e
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      core/dp/txrx3.0/dp_txrx.h

+ 2 - 0
core/dp/txrx3.0/dp_txrx.h

@@ -245,6 +245,8 @@ static inline QDF_STATUS dp_txrx_suspend(ol_txrx_soc_handle soc)
 	}
 
 	qdf_status = dp_rx_tm_suspend(&dp_ext_hdl->rx_tm_hdl);
+	if (QDF_IS_STATUS_ERROR(qdf_status) && refill_thread->enabled)
+		dp_rx_refill_thread_resume(refill_thread);
 
 ret:
 	return qdf_status;