From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754455Ab1G0J6x (ORCPT ); Wed, 27 Jul 2011 05:58:53 -0400 Received: from mga02.intel.com ([134.134.136.20]:33696 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754026Ab1G0J6v (ORCPT ); Wed, 27 Jul 2011 05:58:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,275,1309762800"; d="scan'208";a="32548041" Date: Wed, 27 Jul 2011 12:59:09 +0300 From: Mika Westerberg To: "Koul, Vinod" Cc: Jaswinder Singh , "Williams, Dan J" , Linus Walleij , linux-kernel@vger.kernel.org, rmk+kernel@arm.linux.org.uk, 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 Subject: Re: [PATCHv2] DMAEngine: Let dmac drivers to set chan_id Message-ID: <20110727095909.GB16623@intel.com> References: <1311740499.1536.56.camel@vkoul-udesk3> <1311757347.1536.103.camel@vkoul-udesk3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1311757347.1536.103.camel@vkoul-udesk3> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 27, 2011 at 02:32:26PM +0530, Koul, Vinod wrote: > Can you please help me understand why channel number "x" is important > and strictly needed by some client? At least in ep93xx we have even channel numbers for TX and odd for RX (or vice versa, can't rememeber). This is a hardware restriction. So the client code then filters the channels based on that using ->chan_id. As the caps are not per channel, that is the only way I was able to make it work.