From patchwork Fri Jul 20 05:46:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 1219621 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id E3FF43FD48 for ; Fri, 20 Jul 2012 06:11:05 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Ss6LF-0001Hw-0c; Fri, 20 Jul 2012 06:05:33 +0000 Received: from na3sys009aog117.obsmtp.com ([74.125.149.242]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1Ss630-0005SD-Hv for linux-arm-kernel@lists.infradead.org; Fri, 20 Jul 2012 05:46:44 +0000 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob117.postini.com ([74.125.148.12]) with SMTP ID DSNKUAjwvvTlsYi3wLM7sO0ct7S9gnn00IQB@postini.com; Thu, 19 Jul 2012 22:46:42 PDT Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 19 Jul 2012 22:46:06 -0700 Received: from localhost (unknown [10.26.128.111]) by maili.marvell.com (Postfix) with ESMTP id D25C14E50D; Thu, 19 Jul 2012 22:46:06 -0700 (PDT) From: Zhangfei Gao To: Arnd Bergmann , Vinod Koul , linux-arm-kernel@lists.infradead.org, Eric Miao , Yu Tang , Haojian Zhuang , Chao Xie Subject: [PATCH 3/3] dmatest: add dmaengine_slave_config for DMA_MEMCPY Date: Fri, 20 Jul 2012 13:46:04 +0800 Message-Id: <1342763164-19208-4-git-send-email-zhangfei.gao@marvell.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1342763164-19208-1-git-send-email-zhangfei.gao@marvell.com> References: <1342763164-19208-1-git-send-email-zhangfei.gao@marvell.com> X-OriginalArrivalTime: 20 Jul 2012 05:46:06.0714 (UTC) FILETIME=[F4F055A0:01CD663A] X-Spam-Note: CRM114 invocation failed X-Spam-Score: -4.2 (----) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-4.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [74.125.149.242 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Zhangfei Gao X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Set direction to DMA_MEM_TO_MEM DMA driver may require such configure info Signed-off-by: Zhangfei Gao --- 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,