From patchwork Fri Jul 27 04:46:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 1246981 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 4E2E3DFFB5 for ; Fri, 27 Jul 2012 05:04:14 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sucbl-0003yN-KS; Fri, 27 Jul 2012 04:57:01 +0000 Received: from na3sys009aog109.obsmtp.com ([74.125.149.201]) by merlin.infradead.org with smtps (Exim 4.76 #1 (Red Hat Linux)) id 1SucZg-0003vf-4z for linux-arm-kernel@lists.infradead.org; Fri, 27 Jul 2012 04:54:52 +0000 Received: from MSI-MTA.marvell.com ([65.219.4.132]) (using TLSv1) by na3sys009aob109.postini.com ([74.125.148.12]) with SMTP ID DSNKUBIfGHfhGf4t18dXG1U1Nuura1bgY2Xn@postini.com; Thu, 26 Jul 2012 21:54:52 PDT Received: from maili.marvell.com ([10.68.76.210]) by MSI-MTA.marvell.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 26 Jul 2012 21:46:29 -0700 Received: from localhost (unknown [10.26.128.111]) by maili.marvell.com (Postfix) with ESMTP id 53F5F4E50D; Thu, 26 Jul 2012 21:46:29 -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/4] dmatest: add dmaengine_slave_config for DMA_MEMCPY Date: Fri, 27 Jul 2012 12:46:21 +0800 Message-Id: <1343364382-16269-4-git-send-email-zhangfei.gao@marvell.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1343364382-16269-1-git-send-email-zhangfei.gao@marvell.com> References: <1343364382-16269-1-git-send-email-zhangfei.gao@marvell.com> X-OriginalArrivalTime: 27 Jul 2012 04:46:29.0608 (UTC) FILETIME=[C9B58680:01CD6BB2] X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed 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,