Revert "dmaengine: pl330: fix bug that cause start the same descs in cyclic"
authorJaejoon Yoo <joonyj7.yoo@samsung.com>
Wed, 5 Oct 2016 02:19:41 +0000 (11:19 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:47 +0000 (14:42 +0900)
This reverts commit 0091b9d6c1ef2caab6cb3b6c0aa75f9948307856.

Change-Id: Ideaea8c9a415a544335452f8e6bec969040c02d0

drivers/dma/pl330.c

index de43a520e550a36c5381babe832655976b4f7a3b..ca9bd8ea49ea1ca2da5b90bd6b4cdf1273b1e64f 100644 (file)
@@ -1037,10 +1037,6 @@ static bool _trigger(struct pl330_thread *thrd)
        if (!req)
                return true;
 
-       /* Return if req is running */
-       if (idx == thrd->req_running)
-               return true;
-
        desc = req->desc;
 
        ns = desc->rqcfg.nonsecure ? 1 : 0;
@@ -1728,8 +1724,6 @@ static int pl330_update(struct pl330_dmac *pl330)
                        /* Detach the req */
                        descdone = thrd->req[active].desc;
 
-                       thrd->req_running = -1;
-
                        if (!descdone->infiniteloop) {
                                thrd->req[active].desc = NULL;