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

Commit ea80bb2a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 0773d7ef 7e1edacd
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);