Browse Source

qcacld-3.0: Reset suspend_event before waiting for it

In dp_rx_tm_suspend, suspend_event should be reset before waiting
for it. otherwise, the suspend function will be break.

Change-Id: I9132f45b02386c54fb8e27f0f7c2c71205450c9d
CRs-Fixed: 2606227
Jingxiang Ge 5 years ago
parent
commit
7ec9ead8d1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/dp/txrx3.0/dp_rx_thread.c

+ 1 - 0
core/dp/txrx3.0/dp_rx_thread.c

@@ -664,6 +664,7 @@ QDF_STATUS dp_rx_tm_suspend(struct dp_rx_tm_handle *rx_tm_hdl)
 	for (i = 0; i < rx_tm_hdl->num_dp_rx_threads; i++) {
 		if (!rx_tm_hdl->rx_thread[i])
 			continue;
+		qdf_event_reset(&rx_tm_hdl->rx_thread[i]->suspend_event);
 		qdf_set_bit(RX_SUSPEND_EVENT,
 			    &rx_tm_hdl->rx_thread[i]->event_flag);
 		qdf_wake_up_interruptible(&rx_tm_hdl->rx_thread[i]->wait_q);