Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754782AbZA3QlL (ORCPT ); Fri, 30 Jan 2009 11:41:11 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752137AbZA3Qkw (ORCPT ); Fri, 30 Jan 2009 11:40:52 -0500 Received: from mba.ocn.ne.jp ([122.1.235.107]:63353 "EHLO smtp.mba.ocn.ne.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752464AbZA3Qkv (ORCPT ); Fri, 30 Jan 2009 11:40:51 -0500 Date: Sat, 31 Jan 2009 01:40:50 +0900 (JST) Message-Id: <20090131.014050.126762132.anemo@mba.ocn.ne.jp> To: dan.j.williams@intel.com Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, maciej.sosnowski@intel.com, hskinnemoen@atmel.com, g.liakhovetski@gmx.de, nicolas.ferre@atmel.com Subject: Re: [PATCH 09/13] atmel-mci: convert to dma_request_channel and down-level dma_slave From: Atsushi Nemoto In-Reply-To: <20081114213503.32354.21080.stgit@dwillia2-linux.ch.intel.com> References: <20081114213300.32354.1154.stgit@dwillia2-linux.ch.intel.com> <20081114213503.32354.21080.stgit@dwillia2-linux.ch.intel.com> X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F X-Mailer: Mew version 5.2 on Emacs 21.4 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1268 Lines: 38 On Fri, 14 Nov 2008 14:35:03 -0700, Dan Williams wrote: > dma_request_channel provides an exclusive channel, so we no longer need to > pass slave data through dmaengine. > > Cc: Haavard Skinnemoen > Signed-off-by: Dan Williams Sorry for late review... I hope not too late. > @@ -789,23 +782,17 @@ static int dwc_alloc_chan_resources(struct dma_chan *chan, > cfghi = DWC_CFGH_FIFO_MODE; > cfglo = 0; > > - slave = client->slave; > - if (slave) { > + dws = dwc->dws; > + if (dws) { > /* > * We need controller-specific data to set up slave > * transfers. > */ > - BUG_ON(!slave->dma_dev || slave->dma_dev != dw->dma.dev); > - > - dws = container_of(slave, struct dw_dma_slave, slave); > + BUG_ON(!dws->dma_dev || dws->dma_dev != dw->dma.dev); > > - dwc->dws = dws; How dw_dma_slave passed to the dw_dmac driver? I cannot see where dwc->dws is initialized now. Or am I missing something? --- Atsushi Nemoto -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/