dmaengine/dmatest: Terminate transfers on all channels in case of error or exit
authorViresh Kumar <viresh.kumar@st.com>
Fri, 29 Jul 2011 10:51:57 +0000 (15:51 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 8 Aug 2011 14:02:01 +0000 (19:02 +0530)
commit9704efaa52ab18eb3504c4e0bc421c1d01b7981a
treea6bc4e37cef1bd805e45a40804dd11ef9493a4c3
parent90b44f8ffdf6c66d190ee71b330009bf7f11a208
dmaengine/dmatest: Terminate transfers on all channels in case of error or exit

In case, some error occurs while doing memcpy transfers, we must terminate all
transfers physically too. This is achieved by calling device_control() routine
with TERMINATE_ALL as parameter.

This is also required to be done in case module is removed while we are in
middle of some transfers.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/dmatest.c