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

Commit 7e1edacd authored by Ashok Vuyyuru's avatar Ashok Vuyyuru Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: Not required to send DMA_TASK with 1B packet to IPA



From IPA4.0 version not required to send DMA_TASK 1B packet to
IPA, Because this issue was fixed in latest > IPA4.0 versions,
Add check to not send DMA_TASK command to IPA.

Change-Id: I862b9021cc94ba3c41c274cf7da198150c86c9e4
Signed-off-by: default avatarAshok Vuyyuru <avuyyuru@codeaurora.org>
parent 44ee2b90
Loading
Loading
Loading
Loading
+12 −8
Original line number Diff line number Diff line
@@ -7360,7 +7360,11 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)
			ep->gsi_chan_hdl, res);
		if (res != -GSI_STATUS_AGAIN && res != -GSI_STATUS_TIMED_OUT)
			return res;

		/*
		 * From >=IPA4.0 version not required to send dma send command,
		 * this issue was fixed in latest versions.
		 */
		if (ipa3_ctx->ipa_hw_type < IPA_HW_v4_0) {
			IPADBG("Inject a DMA_TASK with 1B packet to IPA\n");
			/* Send a 1B packet DMA_TASK to IPA and try again */
			res = ipa3_inject_dma_task_for_gsi();
@@ -7368,7 +7372,7 @@ static int __ipa3_stop_gsi_channel(u32 clnt_hdl)
				IPAERR("Failed to inject DMA TASk for GSI\n");
				return res;
			}

		}
		/* sleep for short period to flush IPA */
		usleep_range(IPA_GSI_CHANNEL_STOP_SLEEP_MIN_USEC,
			IPA_GSI_CHANNEL_STOP_SLEEP_MAX_USEC);