From 2952428097cadd61c2137223875b9d8298b69938 Mon Sep 17 00:00:00 2001 From: Kang Nam Park Date: Mon, 29 Dec 2014 15:54:25 +0900 Subject: [PATCH] dma: support 4burst mode for dev-to-mem and mem-to-dev transmit Change-Id: I19b1d7f068a1774f693d9b3c3c201fb3042afa80 Signed-off-by: Kang Nam Park Signed-off-by: Seokju Yoon --- drivers/dma/pl330.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 017a9c7b041b..d9e51cbb14eb 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -1115,6 +1115,8 @@ static inline int _ldst_devtomem(struct pl330_dmac *pl330, unsigned dry_run, if (pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) cond = BURST; + else if (pxs->desc->rqcfg.brst_len != 1) + cond = BURST; else cond = SINGLE; @@ -1140,6 +1142,8 @@ static inline int _ldst_memtodev(struct pl330_dmac *pl330, if (pl330->quirks & PL330_QUIRK_BROKEN_NO_FLUSHP) cond = BURST; + else if (pxs->desc->rqcfg.brst_len != 1) + cond = BURST; else cond = SINGLE; @@ -2869,7 +2873,7 @@ pl330_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl, } desc->rqcfg.brst_size = pch->burst_sz; - desc->rqcfg.brst_len = 1; + desc->rqcfg.brst_len = pch->burst_len; desc->rqtype = direction; desc->bytes_requested = sg_dma_len(sg); } -- 2.20.1