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 3/3] dmatest: add dmaengine_slave_config for DMA_MEMCPY
Date: Fri, 20 Jul 2012 13:46:04 +0800	[thread overview]
Message-ID: <1342763164-19208-4-git-send-email-zhangfei.gao@marvell.com> (raw)
In-Reply-To: <1342763164-19208-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-07-20  5:46 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-20  5:46 [PATCH 0/3] dmaengine: add support mmp-pdma Zhangfei Gao
2012-07-20  5:46 ` [PATCH 1/3] dmaengine: mmp-pdma support Zhangfei Gao
2012-07-24 15:42   ` Arnd Bergmann
2012-07-25  4:48     ` zhangfei gao
2012-07-25  6:01       ` Arnd Bergmann
2012-07-25  8:28         ` zhangfei gao
2012-07-25  8:58           ` Arnd Bergmann
2012-07-26  4:46             ` zhangfei gao
2012-08-06 15:29               ` Arnd Bergmann
2012-07-26  6:51   ` Vinod Koul
2012-07-26  7:02     ` zhangfei gao
2012-07-26 10:09       ` Vinod Koul
2012-07-27  2:51         ` zhangfei gao
2012-07-20  5:46 ` [PATCH 2/3] dmaengine: mmp_tdma: add dt support Zhangfei Gao
2012-07-20  5:46 ` Zhangfei Gao [this message]

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=1342763164-19208-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).