linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: zhangfei.gao@marvell.com (Zhangfei Gao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v3 3/4] dmatest: add dmaengine_slave_config for DMA_MEMCPY
Date: Tue, 14 Aug 2012 12:11:58 +0800	[thread overview]
Message-ID: <1344917519-9505-4-git-send-email-zhangfei.gao@marvell.com> (raw)
In-Reply-To: <1344917519-9505-1-git-send-email-zhangfei.gao@marvell.com>

Set direction to DMA_MEM_TO_MEM
DMA driver may require such configure info

Signed-off-by: Zhangfei Gao <zhangfei.gao@marvell.com>
---
 drivers/dma/dmatest.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/dmatest.c b/drivers/dma/dmatest.c
index 24225f0..73bab68 100644
--- a/drivers/dma/dmatest.c
+++ b/drivers/dma/dmatest.c
@@ -261,6 +261,9 @@ static int dmatest_func(void *data)
 	int			src_cnt;
 	int			dst_cnt;
 	int			i;
+	struct dma_slave_config conf = {
+		.direction = DMA_MEM_TO_MEM,
+	};
 
 	thread_name = current->comm;
 	set_freezable();
@@ -361,6 +364,7 @@ static int dmatest_func(void *data)
 						     DMA_BIDIRECTIONAL);
 		}
 
+		dmaengine_slave_config(chan, &conf);
 
 		if (thread->type == DMA_MEMCPY)
 			tx = dev->device_prep_dma_memcpy(chan,
-- 
1.7.1

  parent reply	other threads:[~2012-08-14  4:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-14  4:11 [PATCH v3 0/4] dmaengine: add support mmp-pdma Zhangfei Gao
2012-08-14  4:11 ` [PATCH v3 1/4] dmaengine: mmp-pdma support Zhangfei Gao
2012-08-14  8:30   ` Russell King - ARM Linux
2012-08-15  7:44     ` zhangfei gao
2012-08-15  8:04       ` Russell King - ARM Linux
2012-08-15  9:09         ` zhangfei gao
2012-08-14  9:33   ` Arnd Bergmann
2012-08-14  4:11 ` [PATCH v3 2/4] dmaengine: mmp_tdma: add dt support Zhangfei Gao
2012-08-14  9:34   ` Arnd Bergmann
2012-08-15  7:47     ` zhangfei gao
2012-08-14  4:11 ` Zhangfei Gao [this message]
2012-08-14  8:20   ` [PATCH v3 3/4] dmatest: add dmaengine_slave_config for DMA_MEMCPY Russell King - ARM Linux
2012-08-15  7:29     ` zhangfei gao
2012-08-14  4:11 ` [PATCH v3 4/4] mtd: pxa3xx-nand: replace pxa_request_dma with dmaengine Zhangfei Gao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1344917519-9505-4-git-send-email-zhangfei.gao@marvell.com \
    --to=zhangfei.gao@marvell.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).