Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9634daa6 authored by Yu Zhang(Yuriy)'s avatar Yu Zhang(Yuriy)
Browse files

qcacmn: discard IPA TX ring flush using conditional compilation

"discard IPA TX ring flush before RTPM suspend"
should be compiled when enable IPA.

Change-Id: I120f79385d53ba3075d1848186d8813236fb5e94
parent 0e140dfd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -10574,8 +10574,10 @@ static QDF_STATUS dp_runtime_suspend(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)

		/* perform a force flush if tx is pending */
		for (i = 0; i < soc->num_tcl_data_rings; i++) {
#ifdef IPA_OFFLOAD
			if (i == IPA_TCL_DATA_RING_IDX)
				continue;
#endif
			hal_srng_set_event(soc->tcl_data_ring[i].hal_srng,
					   HAL_SRNG_FLUSH_EVENT);
			dp_flush_ring_hptp(soc, soc->tcl_data_ring[i].hal_srng);