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

Commit 09932626 authored by Michael Adisumarta's avatar Michael Adisumarta
Browse files

msm: ipa: Wait for the polling to complete before resetting the channel



Wait for the polling mode to be finished before cleaning any channel
irrespective of napi and non-napi objects to avoid race condition.


Change-Id: I2733a93dc555fed7465c09c07532a2a2e08eb96b
Acked-by: default avatarSuhas Mallesh <smallesh@qti.qualcomm.com>
Signed-off-by: default avatarMichael Adisumarta <madisuma@codeaurora.org>
parent 740a3c7b
Loading
Loading
Loading
Loading
+3 −5
Original line number Diff line number Diff line
@@ -1329,11 +1329,9 @@ int ipa3_teardown_sys_pipe(u32 clnt_hdl)
		return result;
	}

	if (ep->sys->napi_obj) {
	do {
		usleep_range(95, 105);
	} while (atomic_read(&ep->sys->curr_polling_state));
	}

	if (IPA_CLIENT_IS_CONS(ep->client))
		cancel_delayed_work_sync(&ep->sys->replenish_rx_work);