From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Date: Thu, 29 Nov 2018 00:52:46 +0100 Subject: [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash In-Reply-To: <20181128230800.13292-8-miquel.raynal@bootlin.com> References: <20181128230800.13292-1-miquel.raynal@bootlin.com> <20181128230800.13292-8-miquel.raynal@bootlin.com> Message-ID: <20181129005246.0623a04b@bbrezillon> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 29 Nov 2018 00:07:43 +0100 Miquel Raynal wrote: > MTD must be enabled when there is a SPI NOR flash. Not sure this is required, as the SF layer is mostly independent from the MTD layer, except for the sf_mtd.c portion. It's probably safer to only enable CONFIG_MTD when CONFIG_SPI_FLASH_MTD is enabled. > Also enable it when CONFIG_CMD_SF is selected to do not > break any build during later cleanup. > > Signed-off-by: Miquel Raynal