From patchwork Tue Jul 17 10:53:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 1204731 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 AC3623FC8E for ; Tue, 17 Jul 2012 11:04:12 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sr5UL-0000el-33; Tue, 17 Jul 2012 10:58:45 +0000 Received: from moutng.kundenserver.de ([212.227.126.187]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Sr5Pr-0008Ms-Ud for linux-arm-kernel@lists.infradead.org; Tue, 17 Jul 2012 10:54:09 +0000 Received: from axis700.grange (dslb-178-006-245-103.pools.arcor-ip.net [178.6.245.103]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MVnTv-1TNFXC3IcR-00Z1xd; Tue, 17 Jul 2012 12:53:54 +0200 Received: by axis700.grange (Postfix, from userid 1000) id 6B948E6A6C; Tue, 17 Jul 2012 12:53:53 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by axis700.grange (Postfix) with ESMTP id 68CDE189B12; Tue, 17 Jul 2012 12:53:53 +0200 (CEST) Date: Tue, 17 Jul 2012 12:53:53 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Vinod Koul Subject: [PATCH/RFC 3/4] ARM: shmobile: extend MMCIF DMA client configuration entries In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Provags-ID: V02:K0:OToxTFlFaGkWGNN3/t1UvwcFyL7aUKye8dgasF+8eIQ XfjQXAd5fyHduJw2ztm4TnDbtbpudbwFbrjedtSx8GyIxcpDNp euMNfngV28bS6eoyOJcnplFZ+r5+pViRGerAKIpjDREXc41Ezp D23TjG2AxvIx1Wc/n6d/OZXc9cPqIgUzzCCjAXxd5d0ru5ln5E Sbn+XFM5nYqwBkJ2OcCWqn7oWWox8VaIAVKdBDPv8caR/gjIIJ XReosgm2tIF3tmJljlRR2AxOVC8qnnO6hdS0OA8sCPYP4wZS8D fPhMu++vEjvGoJdQghDt4YybUGEqrKtOXpxSn2JRZdI+WSVONO bz58aw5Jk/XtViEIuUlKR21hmPu6cMhyWRoR4mCxiudj/ef3UJ JATM+Txej8faA== X-Spam-Note: CRM114 invocation failed X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [212.227.126.187 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (g.liakhovetski[at]gmx.de) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 1.0 MALFORMED_FREEMAIL Bad headers on message from free email service Cc: Stephen Warren , Benoit Cousson , Arnd Bergmann , Stephen Warren , Magnus Damm , linux-sh@vger.kernel.org, Nicolas Ferre , Rob Herring , Grant Likely , Jassi Brar , Jon Hunter , Russell King - ARM Linux , dan.j.williams@intel.com, linux-arm 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: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org To prepare for MMCIF driver transition to the dma_request_slave_channel() API the MMCIF DMA client configuration entries in the slave configuration table have to be extended with device ID and DMA transfer direction fields. Signed-off-by: Guennadi Liakhovetski --- This is just an example. Eventually all DMA client configurations on all affected platforms should be converted. arch/arm/mach-shmobile/setup-sh7372.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-shmobile/setup-sh7372.c b/arch/arm/mach-shmobile/setup-sh7372.c index 7873159..f583e03 100644 --- a/arch/arm/mach-shmobile/setup-sh7372.c +++ b/arch/arm/mach-shmobile/setup-sh7372.c @@ -452,11 +452,15 @@ static const struct sh_dmae_slave_config sh7372_dmae_slaves[] = { .addr = 0xe6bd0034, .chcr = CHCR_TX(XMIT_SZ_32BIT), .mid_rid = 0xd1, + .dev_id = "sh_mmcif.0", + .direction = DMA_MEM_TO_DEV, }, { .slave_id = SHDMA_SLAVE_MMCIF_RX, .addr = 0xe6bd0034, .chcr = CHCR_RX(XMIT_SZ_32BIT), .mid_rid = 0xd2, + .dev_id = "sh_mmcif.0", + .direction = DMA_DEV_TO_MEM, }, };