dmaengine: rcar-dmac: Fixed active descriptor initializing
authorMuhammad Hamza Farooq <mfarooq@visteon.com>
Thu, 30 Jun 2016 15:15:17 +0000 (17:15 +0200)
committerVinod Koul <vinod.koul@intel.com>
Fri, 8 Jul 2016 05:39:10 +0000 (11:09 +0530)
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>
drivers/dma/sh/rcar-dmac.c

index 72e7dab52c483109fc0a5c5469d625fa7d269ca1..561476c1e741866c332fa95f04229af097c1e9a4 100644 (file)
@@ -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);
 
This page took 0.027125 seconds and 5 git commands to generate.