All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash
Date: Thu, 29 Nov 2018 09:06:32 +0100	[thread overview]
Message-ID: <20181129090632.66863fa4@xps13> (raw)
In-Reply-To: <20181129005246.0623a04b@bbrezillon>

Hi Boris,

Boris Brezillon <boris.brezillon@bootlin.com> wrote on Thu, 29 Nov 2018
00:52:46 +0100:

> On Thu, 29 Nov 2018 00:07:43 +0100
> Miquel Raynal <miquel.raynal@bootlin.com> 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 <miquel.raynal@bootlin.com>  
> 

The SPI NOR flash subsystem is a bit specific on this regard but I
suppose this dependency, soon or later, will be required anyway.

Also, even if the commit title tells MTD dependency is only added when
there is a SPI NOR flash, this is not 100% accurate as most of the time
there is also a NAND or a NOR chip that is declared.

Anyway, it is probably best to just depend on CONFIG_SPI_FLASH_MTD for
now, even if this naming does make a lot of sense to me.


Thanks,
Miquèl

  reply	other threads:[~2018-11-29  8:06 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28 23:07 [U-Boot] [PATCH v2 00/24] MTD defconfigs/Kconfigs/Makefiles heavy cleanup Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 01/24] Makefile: move MTD-related lines in coherent Makefiles Miquel Raynal
2018-11-28 23:46   ` Boris Brezillon
2018-11-29  7:57     ` Miquel Raynal
2018-11-29  9:16     ` Miquel Raynal
2018-11-29  9:21       ` Boris Brezillon
2018-11-28 23:07 ` [U-Boot] [PATCH v2 02/24] mtd: rename CONFIG_NAND -> CONFIG_MTD_RAW_NAND Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 03/24] mtd: rename CONFIG_MTD -> CONFIG_DM_MTD Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 04/24] mtd: rename CONFIG_MTD_DEVICE -> CONFIG_MTD Miquel Raynal
2018-11-28 23:49   ` Boris Brezillon
2018-11-28 23:07 ` [U-Boot] [PATCH v2 05/24] mtd: ensure MTD is compiled when there is a NOR flash Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 06/24] mtd: ensure MTD/the raw NAND core are compiled when there is a NAND flash Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 07/24] mtd: ensure MTD is compiled when there is a SPI NOR flash Miquel Raynal
2018-11-28 23:52   ` Boris Brezillon
2018-11-29  8:06     ` Miquel Raynal [this message]
2018-12-04 14:35     ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 08/24] mtd: ensure UBI is compiled when using fastmap Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 09/24] mtd: ensure MTD is compiled when UBI is used Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 10/24] mtd: ensure UBI is compiled when CMD_UBI is selected Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 11/24] mtd: ensure UBI is compiled when ENV_IS_IN_UBI " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 12/24] mtd: ensure MTD_RAW_NAND is compiled when ENV_IS_IN_NAND " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 13/24] mtd: ensure MTD is compiled when ENV_IS_IN_FLASH " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 14/24] mtd: ensure CMD_NAND is compiled when its options are selected Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 15/24] configs: remove raw NAND core from k2g defconfigs Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 16/24] configs: remove MTD support from bcm11130 and M54418TWR defconfigs Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 17/24] mtd: nand: add includes in NAND core to avoid warnings Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 18/24] mtd: rawnand: compile-in the NAND core Miquel Raynal
2018-11-28 23:57   ` Boris Brezillon
2018-12-04 14:33     ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 19/24] dfu: add dependency on " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 20/24] mtd: nand: remove dependency on commands in Kconfig Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 21/24] mtd: ubi: remove dependency on command " Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 22/24] cmd: make all MTD commands depend on MTD Miquel Raynal
2018-11-28 23:59   ` Boris Brezillon
2018-12-04 14:34     ` Miquel Raynal
2018-11-28 23:07 ` [U-Boot] [PATCH v2 23/24] mtd: simplify Makefile Miquel Raynal
2018-11-28 23:08 ` [U-Boot] [PATCH v2 24/24] mtd: drop CONFIG_MTD_PARTITIONS Miquel Raynal
2018-11-29  0:05   ` Boris Brezillon
2018-12-04 14:49     ` Miquel Raynal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181129090632.66863fa4@xps13 \
    --to=miquel.raynal@bootlin.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.