From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933960Ab2C3K3d (ORCPT ); Fri, 30 Mar 2012 06:29:33 -0400 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:42742 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932841Ab2C3K3Z (ORCPT ); Fri, 30 Mar 2012 06:29:25 -0400 Date: Fri, 30 Mar 2012 11:29:10 +0100 From: Russell King - ARM Linux To: Guennadi Liakhovetski Cc: Linus Walleij , Vinod Koul , linux-kernel@vger.kernel.org, Jassi Brar , Magnus Damm , Paul Mundt Subject: Re: [PATCH/RFC] dmaengine: add a slave parameter to __dma_request_channel() Message-ID: <20120330102910.GB22981@n2100.arm.linux.org.uk> References: <1331284918.4657.69.camel@vkoul-udesk3> <1331285959.4657.76.camel@vkoul-udesk3> <1331520476.4657.79.camel@vkoul-udesk3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Mar 16, 2012 at 03:28:39PM +0100, Guennadi Liakhovetski wrote: > Yessss!!! Let's do that! :-D Now, you're proposing exactly the same, as > what I was proposing! :-) Now you just have to remove the filter function > parameter from dma_request_channel() - it is anyway the same for all and > implemented in the dmaengine core - and you get > > dma_request_channel(mask, slave_desc) > > which is exactly what I was proposing! :-) Bollocks it is. You're wanting to use the peripheral address, width and burst size to try to determine what channel to use. That's a totally crackpot idea, and as I've already said several times it won't work in many real life cases we have already.