From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Subject: Re: [PATCH v3 3/9] spi: Extend the core to ease integration of SPI memory controllers Date: Tue, 24 Apr 2018 00:10:04 +0200 Message-ID: <20180424000805.6c015a40@bbrezillon> References: <20180422183522.11118-1-boris.brezillon@bootlin.com> <20180422183522.11118-4-boris.brezillon@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Yogesh Gaur , Vignesh R , Kamal Dasu , Richard Weinberger , Miquel Raynal , linux-spi , Peter Pan , Marek Vasut , Frieder Schrempf , Mark Brown , "open list:MEMORY TECHNOLOGY..." , Cyrille Pitchen , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Maxime Chevallier , Brian Norris , David Woodhouse To: Andy Shevchenko Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+gldm-linux-mtd-36=gmane.org@lists.infradead.org List-Id: linux-spi.vger.kernel.org Hi Andy, On Tue, 24 Apr 2018 00:53:22 +0300 Andy Shevchenko wrote: > On Sun, Apr 22, 2018 at 9:35 PM, Boris Brezillon > wrote: > > Some controllers are exposing high-level interfaces to access various > > kind of SPI memories. Unfortunately they do not fit in the current > > spi_controller model and usually have drivers placed in > > drivers/mtd/spi-nor which are only supporting SPI NORs and not SPI > > memories in general. > > > > This is an attempt at defining a SPI memory interface which works for > > all kinds of SPI memories (NORs, NANDs, SRAMs). > > > +config SPI_MEM > > + bool "SPI memory extension" > > > +#if IS_ENABLED(CONFIG_SPI_MEM) > > IS_BUILTIN(). > You defined it as boolean, IS_ENABLE() is superfluous. Sorry but I don't see the problem here. Yes, IS_BUILTIN() would work, but IS_ENABLED() works fine too and has not impact on runtime perfs (and probably near zero impact on compilation time). Anyway, I'll let Mark decide if this is important enough to send a new version. Regards, Boris ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/