mirror of https://gitee.com/openkylin/linux.git
dmaengine: rcar-dmac: Fixed active descriptor initializing
Running descriptor pointer is set to NULL upon freeing resources. Other- wise, rcar_dmac_issue_pending might not start new transfers Signed-off-by: Muhammad Hamza Farooq <mfarooq@visteon.com> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
0f78e3b58f
commit
48c73659ab
|
@ -990,6 +990,8 @@ static void rcar_dmac_free_chan_resources(struct dma_chan *chan)
|
|||
list_splice_init(&rchan->desc.done, &list);
|
||||
list_splice_init(&rchan->desc.wait, &list);
|
||||
|
||||
rchan->desc.running = NULL;
|
||||
|
||||
list_for_each_entry(desc, &list, node)
|
||||
rcar_dmac_realloc_hwdesc(rchan, desc, 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue