From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C7C98ECDFB8 for ; Wed, 18 Jul 2018 07:50:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A80E2084E for ; Wed, 18 Jul 2018 07:50:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A80E2084E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729750AbeGRI1G convert rfc822-to-8bit (ORCPT ); Wed, 18 Jul 2018 04:27:06 -0400 Received: from mail.bootlin.com ([62.4.15.54]:39491 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726258AbeGRI1G (ORCPT ); Wed, 18 Jul 2018 04:27:06 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 505D22074F; Wed, 18 Jul 2018 09:50:28 +0200 (CEST) Received: from xps13 (AAubervilliers-681-1-27-161.w90-88.abo.wanadoo.fr [90.88.147.161]) by mail.bootlin.com (Postfix) with ESMTPSA id 0A21C20766; Wed, 18 Jul 2018 09:50:18 +0200 (CEST) Date: Wed, 18 Jul 2018 09:50:17 +0200 From: Miquel Raynal To: Boris Brezillon Cc: Arnd Bergmann , David Woodhouse , Brian Norris , Marek Vasut , Richard Weinberger , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] mtd: nand/raw: MTD_NAND_BCM47XXNFLASH needs CONFIG_BCMA Message-ID: <20180718095017.4efa2b37@xps13> In-Reply-To: <20180711104446.69af988a@bbrezillon> References: <20180711084010.57950-1-arnd@arndb.de> <20180711104446.69af988a@bbrezillon> Organization: Bootlin 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 Hi Arnd, Boris Brezillon wrote on Wed, 11 Jul 2018 10:44:46 +0200: > On Wed, 11 Jul 2018 10:39:44 +0200 > Arnd Bergmann wrote: > > > We already have a dependency on BCMA_NFLASH, which in turn depends on > > BCMA, but since BCMA is a tristate option and BCMA_NFLASH is bool, > > we can run into an invalid configuration with MTD_NAND_BCM47XXNFLASH=y > > and BCMA=m: > > > > drivers/mtd/nand/raw/bcm47xxnflash/ops_bcm4706.o: In function `bcm47xxnflash_ops_bcm4706_init': > > ops_bcm4706.c:(.text+0x790): undefined reference to `bcma_chipco_pll_read' > > > > Adding the dependency here forces MTD_NAND_BCM47XXNFLASH to only be > > configured =m here so it can link against the BCMA driver. > > > > Signed-off-by: Arnd Bergmann > > Reviewed-by: Boris Brezillon > Applied with prefix changed to "mtd: rawnand:". Thanks, Miquèl