From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755891Ab1G2MhP (ORCPT ); Fri, 29 Jul 2011 08:37:15 -0400 Received: from mga14.intel.com ([143.182.124.37]:44813 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754263Ab1G2MhO (ORCPT ); Fri, 29 Jul 2011 08:37:14 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,287,1309762800"; d="scan'208";a="2316184" Subject: Re: [PATCHv2] DMAEngine: Let dmac drivers to set chan_id From: "Koul, Vinod" To: Linus Walleij Cc: Jaswinder Singh , Russell King , "Williams, Dan J" , Mika Westerberg , linux-kernel@vger.kernel.org, linus.walleij@stericsson.com, per.friden@stericsson.com, wei.zhang@freescale.com, ebony.zhu@freescale.com, iws@ovro.caltech.edu, s.hauer@pengutronix.de, maciej.sosnowski@intel.com, saeed@marvell.com, shawn.guo@freescale.com, yur@emcraft.com, agust@denx.de, iwamatsu.nobuhiro@renesas.com, per.forlin@stericsson.com, jonas.aberg@stericsson.com, anemo@mba.ocn.ne.jp In-Reply-To: References: <1311740499.1536.56.camel@vkoul-udesk3> <1311757347.1536.103.camel@vkoul-udesk3> <20110727095909.GB16623@intel.com> <20110727202859.GA5028@flint.arm.linux.org.uk> Content-Type: text/plain; charset="UTF-8" Date: Fri, 29 Jul 2011 17:24:09 +0530 Message-ID: <1311940449.1536.520.camel@vkoul-udesk3> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2011-07-29 at 00:27 +0200, Linus Walleij wrote: > On Thu, Jul 28, 2011 at 12:44 PM, Jaswinder Singh > wrote: > > > { > > So far, I haven't assumed the capability of a DMAC to switch, say, > > the RequestSignal_7 from MMC to UART at _runtime_ > > If you think such dmacs and platforms exist, please let me know. > > I will update the proposal. > > } > > Such DMACs exist, in the ARM Versatile and RealView boards... > Check drivers/dma/amba-pl08x.c, notice callback functions named > int (*get_signal)(struct pl08x_dma_chan *); > void (*put_signal)(struct pl08x_dma_chan *); > from > > These implement optional runtime muxing of the request signals, > and it is through these two callbacks because there is a mux > which is external to the pl08x itself that is used, and the muxing > is machine-specific and implemented in the platform. I have been > working on patches using it like the below (still being worked on). > Yes, even in intel_mid_dmac we have such a mux so that DMAC channels can transfer to any of the h/w interfaces. This configuration can be passed by client (which instance) and dmac configures it :) So all channels for a controller can do transfers to any of the peripherals... -- ~Vinod