projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3000cd
)
rcar-hpbdma: initialise plane information when halted
author
Kuninori Morimoto
<
[email protected]
>
Tue, 29 Oct 2013 06:52:21 +0000
(23:52 -0700)
committer
Vinod Koul
<
[email protected]
>
Thu, 28 Nov 2013 08:16:00 +0000
(13:46 +0530)
Plane information should be initialized when halted.
It may restart from the wrong plane without this patch.
Reviewed-by: Max Filippov <
[email protected]
>
Signed-off-by: Kuninori Morimoto <
[email protected]
>
Acked-by: Simon Horman <
[email protected]
>
Signed-off-by: Vinod Koul <
[email protected]
>
drivers/dma/sh/rcar-hpbdma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/sh/rcar-hpbdma.c
b/drivers/dma/sh/rcar-hpbdma.c
index 83de1dbb7505e735e30e37595dbffa005815e62c..3083d901a414f000a54e0337e02973a4586399bf 100644
(file)
--- a/
drivers/dma/sh/rcar-hpbdma.c
+++ b/
drivers/dma/sh/rcar-hpbdma.c
@@
-287,6
+287,9
@@
static void hpb_dmae_halt(struct shdma_chan *schan)
ch_reg_write(chan, HPB_DMAE_DCMDR_DQEND, HPB_DMAE_DCMDR);
ch_reg_write(chan, HPB_DMAE_DSTPR_DMSTP, HPB_DMAE_DSTPR);
+
+ chan->plane_idx = 0;
+ chan->first_desc = true;
}
static const struct hpb_dmae_slave_config *