Received: by 10.223.176.5 with SMTP id f5csp4348976wra; Tue, 30 Jan 2018 06:05:50 -0800 (PST) X-Google-Smtp-Source: AH8x226Vsq1XsGil4mwSA7rNqrlMAWH2ZtAasLZkeH1CCeACdWpfah+cKvfNuTXGho2OSgfUuuvm X-Received: by 10.99.145.66 with SMTP id l63mr23360219pge.273.1517321150656; Tue, 30 Jan 2018 06:05:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517321150; cv=none; d=google.com; s=arc-20160816; b=efEbuHjQ4O8S9eBU7ozEPEfL4lZBfB9feKRVKbFjn4A+fqSWriLtvcrImnHPkzx4no 4z/qkMJpCm9uXLd5/AUqNM0bZYB9ILCD6hpGisknA+zMDSOo5+f/dV0tNTZSTOLV+LJ+ W48ceSqQFAu6uNGTXluvVg5qhhr80VMTBlDHoS25UkTzPVhKB2ylsCFoDZPV7PgIrL5g 8Q2ExEgtH5yyf4KlquffEoKh8ImvX2zzD91f8DsTMLJIsoZX94Pokt8qW61kg1qBA0Ql uKO+/Lp7z5nuqa1gM5rk44d3A8OdnRLZ4vTCZguZiwduomAkJTKZ+LL2T2P8JOJW6TKF dqzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=TcD0K1Ltvl2jVhh2U3mHwoCh/nBSCsz7nWnMgX1/Jts=; b=mOD0HKzQNyc6XWwSPdNywzpPYvncoRuZ0Sy4gsirKSE1R7/8zsk/XWaumNNNnYf50n vfO9ZG7k3AABvxuQLFo+GyDgeRWBNHDXByCZ3NGqdcs7wa/zYdpGNUFxWFgAMxYEwBf/ dIVddKnNhEwBK7/47sxzVx6PNMazMrCXV9oThTBpiLqfsmmC1Q9di1imhPDYHhi97DAq igirLH10C+8Fk/Pzc/ZSya+Lh9C/UTqv4jsOtdF4dP7Mxmt3S2JD0Mko0Q2rb6nL1uBC 79q3rTroMi3nWPcBMDwqoC1/oSKtH+obv1PD8fnz+LExrj9/VbTx9/OVFZ7s3hmsHrNx aXLQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1-v6si1939629pld.81.2018.01.30.06.05.35; Tue, 30 Jan 2018 06:05:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752753AbeA3N4i (ORCPT + 99 others); Tue, 30 Jan 2018 08:56:38 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:42550 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbeA3N4h (ORCPT ); Tue, 30 Jan 2018 08:56:37 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 62846219F9; Tue, 30 Jan 2018 14:56:36 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.0 Received: from bbrezillon (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 245BB219F4; Tue, 30 Jan 2018 14:56:26 +0100 (CET) Date: Tue, 30 Jan 2018 14:56:26 +0100 From: Boris Brezillon To: Miquel Raynal Cc: Geert Uytterhoeven , Richard Weinberger , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA Message-ID: <20180130145626.7a108c64@bbrezillon> In-Reply-To: <20180130144647.73a44b8d@xps13> References: <1517318601-14793-1-git-send-email-geert@linux-m68k.org> <20180130144647.73a44b8d@xps13> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Jan 2018 14:46:47 +0100 Miquel Raynal wrote: > Hi Geert, > > On Tue, 30 Jan 2018 14:23:21 +0100 > Geert Uytterhoeven wrote: > > > If NO_DMA=y: > > > > ERROR: "bad_dma_ops" [drivers/mtd/nand/marvell_nand.ko] undefined! > > > > Add a dependency on HAS_DMA to fix this. > > > > Fixes: 02f26ecf8c772751 ("mtd: nand: add reworked Marvell NAND controller driver") > > Signed-off-by: Geert Uytterhoeven > > --- > > drivers/mtd/nand/Kconfig | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/mtd/nand/Kconfig b/drivers/mtd/nand/Kconfig > > index e6b8c59f2c0da7c0..736ac887303c88ba 100644 > > --- a/drivers/mtd/nand/Kconfig > > +++ b/drivers/mtd/nand/Kconfig > > @@ -328,7 +328,7 @@ config MTD_NAND_MARVELL > > tristate "NAND controller support on Marvell boards" > > depends on PXA3xx || ARCH_MMP || PLAT_ORION || ARCH_MVEBU || \ > > COMPILE_TEST > > - depends on HAS_IOMEM > > + depends on HAS_IOMEM && HAS_DMA > > I think this is more a coding issue than a Kconfig issue. AFAIR, none > of the ARCH_MVEBU SoCs use DMA in conjunction with the NAND controller. > PXA SoCs may use DMA (NFCv1 only) but this is not a hard requirement and > the driver is supposed to support PIO mode in all situations. > > Can you please share your setup, the SoC, the configuration, > maybe also the DT? I don't think Geert is testing on a real board. He's just enabling COMPILE_TEST and can then select your driver. Which means you really need this depends on HAS_DMA.