Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754042AbcCHOqo (ORCPT ); Tue, 8 Mar 2016 09:46:44 -0500 Received: from down.free-electrons.com ([37.187.137.238]:45543 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751516AbcCHOqd (ORCPT ); Tue, 8 Mar 2016 09:46:33 -0500 Date: Tue, 8 Mar 2016 15:46:20 +0100 From: Boris Brezillon To: Vinod Koul Cc: Andrew Morton , Dave Gordon , David Woodhouse , Brian Norris , linux-mtd@lists.infradead.org, Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Maxime Ripard , Chen-Yu Tsai , linux-sunxi@googlegroups.com, Dan Williams , dmaengine@vger.kernel.org, Mauro Carvalho Chehab , Hans Verkuil , Laurent Pinchart , linux-media@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , devicetree@vger.kernel.org Subject: Re: [PATCH 5/7] mtd: provide helper to prepare buffers for DMA operations Message-ID: <20160308154620.3d64d02b@bbrezillon> In-Reply-To: <20160308141853.GQ11154@localhost> References: <1457435715-24740-1-git-send-email-boris.brezillon@free-electrons.com> <1457435715-24740-6-git-send-email-boris.brezillon@free-electrons.com> <20160308141853.GQ11154@localhost> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.27; x86_64-pc-linux-gnu) 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: 537 Lines: 19 On Tue, 8 Mar 2016 19:48:53 +0530 Vinod Koul wrote: > On Tue, Mar 08, 2016 at 12:15:13PM +0100, Boris Brezillon wrote: > > > > +#ifdef CONFIG_HAS_DMA > > Shouldn't this be CONFIG_DMA_ENGINE as you are preparing these descriptors > for DMA transfer? > Nope, scatterlist users are not necessarily using a dmaengine, some IPs are directly embedding a dedicated DMA engine, which has no driver in drivers/dma/. -- Boris Brezillon, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com