diff options
author | Muhammad Hamza Farooq <mfarooq@visteon.com> | 2016-06-30 18:15:17 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-07-08 08:39:10 +0300 |
commit | 48c73659abae103a2f8531f825ce7a3f8dedbb39 (patch) | |
tree | 27c53468310ddaf8388efc36c7cb767225385fa2 | |
parent | 0f78e3b58f5f99c991613db4477f893b53da5520 (diff) | |
download | linux-48c73659abae103a2f8531f825ce7a3f8dedbb39.tar.xz |
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) 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); |