dma: Modify FLUSHP instuction for DP audio.
authorJaejoon Yoo <joonyj7.yoo@samsung.com>
Mon, 24 Oct 2016 06:42:46 +0000 (15:42 +0900)
committerTaekki Kim <taekki.kim@samsung.com>
Mon, 14 May 2018 05:42:47 +0000 (14:42 +0900)
Change-Id: I353a38327e5b5265045547c6ced6c2a072f20a47
Signed-off-by: Jaejoon Yoo <joonyj7.yoo@samsung.com>
drivers/dma/pl330.c

index ca9bd8ea49ea1ca2da5b90bd6b4cdf1273b1e64f..dc3630dc779c1d34187d200ddfca49acc62a17c2 100644 (file)
@@ -1219,8 +1219,9 @@ static inline int _loop_infiniteloop(struct pl330_dmac *pl330, unsigned dry_run,
        /* forever loop */
        off += _emit_MOV(dry_run, &buf[off], SAR, pxs->desc->px.src_addr);
        off += _emit_MOV(dry_run, &buf[off], DAR, pxs->desc->px.dst_addr);
-       if (pxs->desc->rqtype != DMA_MEM_TO_MEM)
-               off += _emit_FLUSHP(dry_run, &buf[off], pxs->desc->peri);
+
+       off += _emit_NOP(dry_run, &buf[off]);
+       off += _emit_NOP(dry_run, &buf[off]);
 
        /* loop0 */
        off += _emit_LP(dry_run, &buf[off], 0,  lcnt0);