Received: by 10.223.176.5 with SMTP id f5csp4375401wra; Tue, 30 Jan 2018 06:28:10 -0800 (PST) X-Google-Smtp-Source: AH8x2275lZcN0bcpjPe6FZrq5aPqCvXaw220eiwQY+AI6E0q5WHf1mjWTse/6y3n5yMUwGCTkvc+ X-Received: by 2002:a17:902:860b:: with SMTP id f11-v6mr26044424plo.135.1517322490700; Tue, 30 Jan 2018 06:28:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517322490; cv=none; d=google.com; s=arc-20160816; b=HssDq/YGAmU9XdzaDDocTt/yCnCSgWLLEgaJuF5nyWs7Zx46DgtSojcdF3e+5ul2Ls oU95Jl7GYC5MqkQ9UJht3S4stEm9CSmvb5lt35eIPkeuen9/lwd8NXZ2v43gfgcRyE0L 5Im+xJM+cDxM4LSOf9oKQTxudsP7vnqYzfTSumbiIfuwxeHC62hqgqrkhXpqezPP0dw2 rkaqSZWvdX7+ntWiG1dz94/nHPIfZvBSWPvatqx+8oMnfsVR028YhBqnuRnMnrZzKDEL 47XE2fztokXOb5Nw7O8XAC0m6KT8ShnfimWvV7VWAEuXA9Intu0Q6f0qkgJKLDZ7AZoj P5aA== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=MjOGCK0NFGzTbDp9N9TDPK1FZviJWAjN9wWE4hx7WoY=; b=uuXPCXoV7kU2J+8AhTgtpx355las3pq1qxiiOEJYFK0dS+YO6j+Cw1hnwGkzQr/Dry Oo/yMrFAFizaEaF1GuGYWoGrebEFj1fa8uTcGWHkybApdgS1jkm+diPgfJQ3xQcI0BiE /5z48a69dI5V0sbV4MZO/W2yuPQyZgWyK488gnYl/T2TlBFgnlnm1lTvkeM+bBgG6pjy kdR6YTrgYU1MedWYxZw/4ii4LRl+JVpjd2bzPwAd4gcGBFOd6Dykqjtqsw9yrQSoqbvC 63WkTYM8X+pTI+6l1ekL6FxCLnyjCo+Hsp/kyXcpXeabSC+9mtOLcEhqtA6QYOhey4TC HE8Q== 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 q13si1662725pgq.181.2018.01.30.06.27.55; Tue, 30 Jan 2018 06:28:10 -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 S1752216AbeA3OF1 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 30 Jan 2018 09:05:27 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:42736 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbeA3OF0 (ORCPT ); Tue, 30 Jan 2018 09:05:26 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id 8C302219FE; Tue, 30 Jan 2018 15:05:24 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from xps13 (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id 4A5C6219AB; Tue, 30 Jan 2018 15:05:14 +0100 (CET) Date: Tue, 30 Jan 2018 15:05:14 +0100 From: Miquel Raynal To: Geert Uytterhoeven Cc: Boris Brezillon , Richard Weinberger , MTD Maling List , Linux Kernel Mailing List Subject: Re: [PATCH] mtd: nand: MTD_NAND_MARVELL should depend on HAS_DMA Message-ID: <20180130150514.290bf0e9@xps13> In-Reply-To: References: <1517318601-14793-1-git-send-email-geert@linux-m68k.org> <20180130144647.73a44b8d@xps13> <20180130145626.7a108c64@bbrezillon> Organization: Free Electrons 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=UTF-8 Content-Transfer-Encoding: 8BIT 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:59:37 +0100 Geert Uytterhoeven wrote: > On Tue, Jan 30, 2018 at 2:56 PM, Boris Brezillon > wrote: > > On Tue, 30 Jan 2018 14:46:47 +0100 > > Miquel Raynal wrote: > >> 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. > > Correct. My bad. Ok then, it looks like this is the right fix. Thanks Geert for reporting it. Miquèl > > Gr{oetje,eeting}s, > > Geert > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > In personal conversations with technical people, I call myself a hacker. But > when I'm talking to journalists I just say "programmer" or something like that. > -- Linus Torvalds -- Miquel Raynal, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com