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

Commit 3a8414b8 authored by Sunil Paidimarri's avatar Sunil Paidimarri
Browse files

msm: ipa: Hold wakelock on Neutrino offload enable



Hold wakelock on Neturino offload enable and release
it on disable to avoid Apps suspend.

Change-Id: I53e7abf49829159a4b07f9047617268e03162ff9
CRs-Fixed: 1060848
Signed-off-by: default avatarSunil Paidimarri <hisunil@codeaurora.org>
parent ac182352
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -361,6 +361,7 @@ int ipa2_setup_uc_ntn_pipes(struct ipa_ntn_conn_in_params *in,
	ep_dl->uc_offload_state |= IPA_UC_OFFLOAD_CONNECTED;
	IPAERR("client %d (ep: %d) connected\n", in->dl.client,
		ipa_ep_idx_dl);
	ipa_inc_acquire_wakelock(IPA_WAKELOCK_REF_CLIENT_ODU_RX);

fail:
	IPA_ACTIVE_CLIENTS_DEC_SIMPLE();
@@ -436,6 +437,7 @@ int ipa2_tear_down_uc_offload_pipes(int ipa_ep_idx_ul,
	ipa_disable_data_path(ipa_ep_idx_dl);
	memset(&ipa_ctx->ep[ipa_ep_idx_dl], 0, sizeof(struct ipa_ep_context));
	IPADBG("dl client (ep: %d) disconnected\n", ipa_ep_idx_dl);
	ipa_dec_release_wakelock(IPA_WAKELOCK_REF_CLIENT_ODU_RX);

fail:
	dma_free_coherent(ipa_ctx->uc_pdev, cmd.size, cmd.base, cmd.phys_base);