aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-10-29 02:52:21 -0400
committerVinod Koul <vinod.koul@intel.com>2013-11-28 03:16:00 -0500
commit5affdeea8fd07f89709d39585ec47fb29f73247c (patch)
tree9066789630ff690244e2d2a9beadf09a8b7d819d /drivers/dma
parentb3000cd835a6116c0a7d0f8e3df5be26c2138d86 (diff)
rcar-hpbdma: initialise plane information when halted
Plane information should be initialized when halted. It may restart from the wrong plane without this patch. Reviewed-by: Max Filippov <max.filippov@cogentembedded.com> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Simon Horman <horms+renesas@verge.net.au> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/sh/rcar-hpbdma.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/dma/sh/rcar-hpbdma.c b/drivers/dma/sh/rcar-hpbdma.c
index 83de1dbb7505..3083d901a414 100644
--- 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)
287 287
288 ch_reg_write(chan, HPB_DMAE_DCMDR_DQEND, HPB_DMAE_DCMDR); 288 ch_reg_write(chan, HPB_DMAE_DCMDR_DQEND, HPB_DMAE_DCMDR);
289 ch_reg_write(chan, HPB_DMAE_DSTPR_DMSTP, HPB_DMAE_DSTPR); 289 ch_reg_write(chan, HPB_DMAE_DSTPR_DMSTP, HPB_DMAE_DSTPR);
290
291 chan->plane_idx = 0;
292 chan->first_desc = true;
290} 293}
291 294
292static const struct hpb_dmae_slave_config * 295static const struct hpb_dmae_slave_config *