Skip to content

Commit

Permalink
rcar-hpbdma: initialise plane information when halted
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kuninori Morimoto authored and Vinod Koul committed Nov 28, 2013
1 parent b3000cd commit 5affdee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/dma/sh/rcar-hpbdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
Expand Down

0 comments on commit 5affdee

Please sign in to comment.