projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add56ba
)
ARM: mxs-dma: reset after disable channel
author
Dong Aisheng
<b29396@freescale.com>
Tue, 19 Jul 2011 04:09:56 +0000
(12:09 +0800)
committer
Vinod Koul
<vinod.koul@intel.com>
Tue, 26 Jul 2011 10:03:28 +0000
(15:33 +0530)
We met some channels in abnormal state after disable.
Reset it to get a clean state.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Cc: Vinod Koul <vinod.koul@intel.com>
Cc: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/mxs-dma.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/dma/mxs-dma.c
b/drivers/dma/mxs-dma.c
index f22a237b7dd63dac4bea8c1f58810340dc2bb89a..be641cbd36fcb30c16aafaf25f279ecc0064b07a 100644
(file)
--- a/
drivers/dma/mxs-dma.c
+++ b/
drivers/dma/mxs-dma.c
@@
-537,6
+537,7
@@
static int mxs_dma_control(struct dma_chan *chan, enum dma_ctrl_cmd cmd,
switch (cmd) {
case DMA_TERMINATE_ALL:
mxs_dma_disable_chan(mxs_chan);
+ mxs_dma_reset_chan(mxs_chan);
break;
case DMA_PAUSE:
mxs_dma_pause_chan(mxs_chan);