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

Commit 5e034f7b authored by Shiraz Hashim's avatar Shiraz Hashim Committed by Vinod Koul
Browse files

dmaengine/dmatest: terminate transfers only in case of errors



dmatest erroneously terminated transfers in normal cases also leading to
test failures for multiple threads over a channel. Fix this and
terminate transfers only in case of errors.

Signed-off-by: default avatarShiraz Hashim <shiraz.hashim@st.com>
Signed-off-by: default avatarDeepak Sikri <deepak.sikri@st.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 7c1119bd
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -536,7 +536,9 @@ static int dmatest_func(void *data)
			thread_name, total_tests, failed_tests, ret);

	/* terminate all transfers on specified channels */
	if (ret)
		dmaengine_terminate_all(chan);

	if (iterations > 0)
		while (!kthread_should_stop()) {
			DECLARE_WAIT_QUEUE_HEAD_ONSTACK(wait_dmatest_exit);