From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755043Ab2IQIhM (ORCPT ); Mon, 17 Sep 2012 04:37:12 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:34175 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750743Ab2IQIhJ (ORCPT ); Mon, 17 Sep 2012 04:37:09 -0400 Date: Mon, 17 Sep 2012 09:36:54 +0100 From: Russell King - ARM Linux To: Vinod Koul Cc: linux-kernel@vger.kernel.org, Dan Williams , Arnd Bergmann , linus.walleij@linaro.org, Jon Hunter , Stephen Warren , Benoit Cousson , Shawn Guo , Guennadi Liakhovetski , Sascha Hauer , Kukjin Kim , viresh kumar , Paul Mundt Subject: Re: [PATCH] dmaengine: add dmanegine slave map api's Message-ID: <20120917083654.GO12245@n2100.arm.linux.org.uk> References: <1347615189-27052-1-git-send-email-vinod.koul@linux.intel.com> <20120914094155.GC12245@n2100.arm.linux.org.uk> <1347619868.1943.113.camel@vkoul-udesk3> <20120914111842.GD12245@n2100.arm.linux.org.uk> <1347853223.1943.136.camel@vkoul-udesk3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1347853223.1943.136.camel@vkoul-udesk3> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 17, 2012 at 09:10:23AM +0530, Vinod Koul wrote: > On Fri, 2012-09-14 at 12:18 +0100, Russell King - ARM Linux wrote: > > I'm not saying take the slave_id out of the map. I'm saying, let the > > DMA engine driver itself figure out what dma_chan to return. > But wont that assume the dma controller knows which channel to allocate. > And how would it know this information? This can be problematic for hard > wired muxes, but can be easily done for controller which have > programmable mux. Well, as I have already said, at the moment you're returning the _first_ _free_ _channel_ on a DMA device, which almost certainly will always be the wrong one.