diff options
author | Muhammad Hamza Farooq <mfarooq@visteon.com> | 2016-06-30 11:15:17 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-08 01:39:10 -0400 |
commit | 48c73659abae103a2f8531f825ce7a3f8dedbb39 (patch) | |
tree | 27c53468310ddaf8388efc36c7cb767225385fa2 | |
parent | 0f78e3b58f5f99c991613db4477f893b53da5520 (diff) |
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>
-rw-r--r-- | drivers/dma/sh/rcar-dmac.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dma/sh/rcar-dmac.c b/drivers/dma/sh/rcar-dmac.c index 72e7dab52c48..561476c1e741 100644 --- a/drivers/dma/sh/rcar-dmac.c +++ b/drivers/dma/sh/rcar-dmac.c | |||
@@ -990,6 +990,8 @@ static void rcar_dmac_free_chan_resources(struct dma_chan *chan) | |||
990 | list_splice_init(&rchan->desc.done, &list); | 990 | list_splice_init(&rchan->desc.done, &list); |
991 | list_splice_init(&rchan->desc.wait, &list); | 991 | list_splice_init(&rchan->desc.wait, &list); |
992 | 992 | ||
993 | rchan->desc.running = NULL; | ||
994 | |||
993 | list_for_each_entry(desc, &list, node) | 995 | list_for_each_entry(desc, &list, node) |
994 | rcar_dmac_realloc_hwdesc(rchan, desc, 0); | 996 | rcar_dmac_realloc_hwdesc(rchan, desc, 0); |
995 | 997 | ||