From: zhangfei.gao@marvell.com (Zhangfei Gao)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/4] dmatest: add dmaengine_slave_config for DMA_MEMCPY
Date: Wed, 8 Aug 2012 11:15:00 +0800 [thread overview]
Message-ID: <1344395701-30888-4-git-send-email-zhangfei.gao@marvell.com> (raw)
In-Reply-To: <1344395701-30888-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
next prev parent reply other threads:[~2012-08-08 3:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-08 3:14 [PATCH v2 0/4] dmaengine: add support mmp-pdma Zhangfei Gao
2012-08-08 3:14 ` [PATCH v2 1/4] dmaengine: mmp-pdma support Zhangfei Gao
2012-08-13 13:12 ` Arnd Bergmann
2012-08-14 4:02 ` zhangfei gao
2012-08-08 3:14 ` [PATCH v2 2/4] dmaengine: mmp_tdma: add dt support Zhangfei Gao
2012-08-08 3:15 ` Zhangfei Gao [this message]
2012-08-08 3:15 ` [PATCH v2 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=1344395701-30888-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).