From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pa0-x242.google.com ([2607:f8b0:400e:c03::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bPPQL-0006dV-OF for linux-mtd@lists.infradead.org; Tue, 19 Jul 2016 07:26:38 +0000 Received: by mail-pa0-x242.google.com with SMTP id cf3so816106pad.2 for ; Tue, 19 Jul 2016 00:26:17 -0700 (PDT) Date: Tue, 19 Jul 2016 00:26:13 -0700 From: Brian Norris To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Kalle Valo , linux-wireless@vger.kernel.org, David Woodhouse , "open list:MEMORY TECHNOLOGY DEVICES (MTD)" , open list Subject: Re: [PATCH] mtd: add arch dependency for MTD_BCM47XXSFLASH symbol Message-ID: <20160719072613.GA96986@google.com> References: <1468912123-14899-1-git-send-email-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1468912123-14899-1-git-send-email-zajec5@gmail.com> List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jul 19, 2016 at 09:08:32AM +0200, Rafał Miłecki wrote: > We dropped strict MIPS dependency for bcm47xxsflash driver in: > commit 5651d6aaf489 ("mtd: bcm47xxsflash: use ioremap_cache() instead of > KSEG0ADDR()") but using ioremap_cache still limits building it to few > selected architectures only. > > A recent commit 57d8f7dd2132 ("bcma: allow enabling serial flash support > on non-MIPS SoCs") automatically dropped MIPS dependency for > MTD_BCM47XXSFLASH which broke building e.g. on powerpc and cris. > > The bcma change is alright as it doesn't break building bcma code in any > way. MTD_BCM47XXSFLASH on the other hand should be limited to archs > which need it and can build it (by providing ioremap_cache). > > Fixes: 57d8f7dd2132 ("bcma: allow enabling serial flash support on non-MIPS SoCs") > Signed-off-by: Rafał Miłecki > Cc: Brian Norris While I might prefer we have a better consistent set of portable I/O accessors (it's really a mess), it seems quite reasonable to restrict the damage to ARM and MIPS here if it saves some short-term hassle: Acked-by: Brian Norris > --- > That bcma commit breaking building landed in the wireless-drivers-next. > Is that possible to get this patch through the same tree? That's fine with me. Regards, Brian > --- > drivers/mtd/devices/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mtd/devices/Kconfig b/drivers/mtd/devices/Kconfig > index f73c416..64a2485 100644 > --- a/drivers/mtd/devices/Kconfig > +++ b/drivers/mtd/devices/Kconfig > @@ -114,7 +114,7 @@ config MTD_SST25L > > config MTD_BCM47XXSFLASH > tristate "R/O support for serial flash on BCMA bus" > - depends on BCMA_SFLASH > + depends on BCMA_SFLASH && (MIPS || ARM) > help > BCMA bus can have various flash memories attached, they are > registered by bcma as platform devices. This enables driver for > -- > 1.8.4.5 >