defconfigs: add MTD_SPI_NOR (dependency for M25P80)
Subsystems (10)
cover defconfigs: add MTD_SPI_NOR (dependency for M25P80)
Hi all,
We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver for its abstraction and moves this code into a spi-nor module.
This means CONFIG_M25P80 now has a dependency on CONFIG_MTD_SPI_NOR, which should be added to the defconfigs. I'm not sure what is the best process for doing this. Should each $ARCH maintainer just take their respective patch, even if the MTD_SPI_NOR Kconfig symbol is not defined for them yet? Or should maintainers plan on merging the relevant SPI-NOR code into their trees during the development cycle? Or some third option?
Anyway, the patches are here. Please keep general comments to the cover letter, so all parties can see.
This series is based on the development repo for MTD, in the 'spinor' branch:
git://git.infradead.org/l2-mtd.git +spinor
This series is available in the same repo at:
git://git.infradead.org/l2-mtd.git +defconfigs
I tried locally merging this into linux-next and saw a trivial conflict in arch/arm/configs/shmobile_defconfig. I can resubmit based on an appropriate tree, if requested.
Thanks,
Brian
P.S. I was going to purely automatically generate this diff as follows, but it generated a lot of defconfig noise:
#!/bin/sh
for i in arm blackfin mips powerpc sh
do
for j in git grep -l M25P80 arch/$i/configs do
echo $j
cp $j .config
echo CONFIG_MTD_SPI_NOR=y >> .config make ARCH=$i savedefconfig mv defconfig $j
done
done
So I did a mixed approach, where I filtered most of the noise out of the diff.
Brian Norris (5):
ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
blackfin: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
mips: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
powerpc: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
sh: defconfig: add MTD_SPI_NOR (new dependency for M25P80)
arch/arm/configs/bockw_defconfig | 2 +- arch/arm/configs/dove_defconfig | 2 +- arch/arm/configs/imx_v6_v7_defconfig | 1 + arch/arm/configs/keystone_defconfig | 1 + arch/arm/configs/kirkwood_defconfig | 1 + arch/arm/configs/koelsch_defconfig | 1 + arch/arm/configs/lager_defconfig | 1 + arch/arm/configs/lpc32xx_defconfig | 2 +- arch/arm/configs/multi_v5_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/mvebu_v5_defconfig | 1 + arch/arm/configs/mvebu_v7_defconfig | 1 + arch/arm/configs/mxs_defconfig | 1 + arch/arm/configs/sama5_defconfig | 2 +- arch/arm/configs/shmobile_defconfig | 1 + arch/arm/configs/tegra_defconfig | 1 + arch/blackfin/configs/BF526-EZBRD_defconfig | 2 +- arch/blackfin/configs/BF527-EZKIT-V2_defconfig | 2 +- arch/blackfin/configs/BF527-EZKIT_defconfig | 2 +- arch/blackfin/configs/BF548-EZKIT_defconfig | 2 +- arch/blackfin/configs/BF609-EZKIT_defconfig | 2 +- arch/blackfin/configs/BlackStamp_defconfig | 3 +-- arch/blackfin/configs/H8606_defconfig | 3 +-- arch/mips/configs/ath79_defconfig | 3 +-- arch/mips/configs/db1xxx_defconfig | 1 + arch/mips/configs/rt305x_defconfig | 2 +- arch/powerpc/configs/corenet32_smp_defconfig | 2 +- arch/powerpc/configs/corenet64_smp_defconfig | 2 +- arch/powerpc/configs/mpc85xx_defconfig | 2 +- arch/powerpc/configs/mpc85xx_smp_defconfig | 2 +- arch/sh/configs/sh7757lcr_defconfig | 2 +- 31 files changed, 31 insertions(+), 21 deletions(-)
Signature · 1 line
1.8.3.2
PATCH 1/5 ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
These defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs.
At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol.
---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git +spinor
arch/arm/configs/bockw_defconfig | 2 +- arch/arm/configs/dove_defconfig | 2 +- arch/arm/configs/imx_v6_v7_defconfig | 1 + arch/arm/configs/keystone_defconfig | 1 + arch/arm/configs/kirkwood_defconfig | 1 + arch/arm/configs/koelsch_defconfig | 1 + arch/arm/configs/lager_defconfig | 1 + arch/arm/configs/lpc32xx_defconfig | 2 +- arch/arm/configs/multi_v5_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/mvebu_v5_defconfig | 1 + arch/arm/configs/mvebu_v7_defconfig | 1 + arch/arm/configs/mxs_defconfig | 1 + arch/arm/configs/sama5_defconfig | 2 +- arch/arm/configs/shmobile_defconfig | 1 + arch/arm/configs/tegra_defconfig | 1 + 16 files changed, 16 insertions(+), 4 deletions(-)
arch/arm/configs/bockw_defconfig +1 -1
@@ -50,11 +50,11 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_NETDEVICES=y
arch/arm/configs/dove_defconfig +1 -1
@@ -37,7 +37,6 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y
@@ -48,6 +47,7 @@ CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_STAA=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=1
arch/arm/configs/imx_v6_v7_defconfig +1 -0
@@ -89,6 +89,7 @@ CONFIG_MTD_SST25L=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_GPMI_NAND=y CONFIG_MTD_NAND_MXC=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y
arch/arm/configs/keystone_defconfig +1 -0
@@ -112,6 +112,7 @@ CONFIG_MTD_PLATRAM=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_DAVINCI=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y
arch/arm/configs/kirkwood_defconfig +1 -0
@@ -61,6 +61,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not set
arch/arm/configs/koelsch_defconfig +1 -0
@@ -42,6 +42,7 @@ CONFIG_ATA=y CONFIG_SATA_RCAR=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_NETDEVICES=y # CONFIG_NET_VENDOR_ARC is not set # CONFIG_NET_CADENCE is not set
arch/arm/configs/lager_defconfig +1 -0
@@ -53,6 +53,7 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_SD=y CONFIG_ATA=y CONFIG_SATA_RCAR=y
arch/arm/configs/lpc32xx_defconfig +1 -1
@@ -53,12 +53,12 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_FW_LOADER is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_SLC_LPC32XX=y CONFIG_MTD_NAND_MLC_LPC32XX=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_CRYPTOLOOP=y CONFIG_BLK_DEV_RAM=y
arch/arm/configs/multi_v5_defconfig +1 -0
@@ -56,6 +56,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not set
arch/arm/configs/multi_v7_defconfig +1 -0
@@ -108,6 +108,7 @@ CONFIG_CMA_SIZE_MBYTES=64 CONFIG_OMAP_OCP2SCP=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_ICS932S401=y CONFIG_APDS9802ALS=y
arch/arm/configs/mvebu_v5_defconfig +1 -0
@@ -50,6 +50,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not set
arch/arm/configs/mvebu_v7_defconfig +1 -0
@@ -53,6 +53,7 @@ CONFIG_I2C_MV64XXX=y CONFIG_MTD=y CONFIG_MTD_CHAR=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_AMDSTD=y
arch/arm/configs/mxs_defconfig +1 -0
@@ -55,6 +55,7 @@ CONFIG_MTD_M25P80=y CONFIG_MTD_SST25L=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_GPMI_NAND=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y # CONFIG_BLK_DEV is not set CONFIG_EEPROM_AT24=y
arch/arm/configs/sama5_defconfig +1 -1
@@ -65,12 +65,12 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y CONFIG_PROC_DEVICETREE=y
arch/arm/configs/shmobile_defconfig +1 -0
@@ -43,6 +43,7 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_SD=y CONFIG_ATA=y CONFIG_SATA_RCAR=y
arch/arm/configs/tegra_defconfig +1 -0
@@ -90,6 +90,7 @@ CONFIG_DMA_CMA=y CONFIG_CMA_SIZE_MBYTES=64 CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y
Signature · 1 line
1.8.3.2
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 15 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.Signed-off-by Brian Norris <[email protected]>Cc Russell King <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Stephen Warren <[email protected]>Cc Thierry Reding <[email protected]>Cc Olof Johansson <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc linux-kernel at vger.kernel.org
Quoted 1 line
---
mxs_defconfig is
Best regards,
Marek Vasut
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisQuoted 249 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.Signed-off-by Brian Norris <[email protected]>Cc Russell King <[email protected]>Cc Shawn Guo <[email protected]>Cc Sascha Hauer <[email protected]>Cc Stephen Warren <[email protected]>Cc Thierry Reding <[email protected]>Cc Olof Johansson <[email protected]>Cc linux-arm-kernel at lists.infradead.orgCc linux-kernel at vger.kernel.org---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git+spinorarch/arm/configs/bockw_defconfig | 2 +- arch/arm/configs/dove_defconfig | 2 +- arch/arm/configs/imx_v6_v7_defconfig | 1 + arch/arm/configs/keystone_defconfig | 1 + arch/arm/configs/kirkwood_defconfig | 1 + arch/arm/configs/koelsch_defconfig | 1 + arch/arm/configs/lager_defconfig | 1 + arch/arm/configs/lpc32xx_defconfig | 2 +- arch/arm/configs/multi_v5_defconfig | 1 + arch/arm/configs/multi_v7_defconfig | 1 + arch/arm/configs/mvebu_v5_defconfig | 1 + arch/arm/configs/mvebu_v7_defconfig | 1 + arch/arm/configs/mxs_defconfig | 1 + arch/arm/configs/sama5_defconfig | 2 +- arch/arm/configs/shmobile_defconfig | 1 + arch/arm/configs/tegra_defconfig | 1 + 16 files changed, 16 insertions(+), 4 deletions(-)arch/arm/configs/bockw_defconfig +1
-1@@ -50,11 +50,11 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_NETDEVICES=yarch/arm/configs/dove_defconfig +1
-1@@ -37,7 +37,6 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y@@ -48,6 +47,7 @@ CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_STAA=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_COUNT=1arch/arm/configs/imx_v6_v7_defconfig +1
-0@@ -89,6 +89,7 @@ CONFIG_MTD_SST25L=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_GPMI_NAND=y CONFIG_MTD_NAND_MXC=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=yarch/arm/configs/keystone_defconfig +1
-0@@ -112,6 +112,7 @@ CONFIG_MTD_PLATRAM=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_DAVINCI=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=yarch/arm/configs/kirkwood_defconfig +1
-0@@ -61,6 +61,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not setarch/arm/configs/koelsch_defconfig +1
-0@@ -42,6 +42,7 @@ CONFIG_ATA=y CONFIG_SATA_RCAR=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_NETDEVICES=y # CONFIG_NET_VENDOR_ARC is not set # CONFIG_NET_CADENCE is not setarch/arm/configs/lager_defconfig +1
-0@@ -53,6 +53,7 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_SD=y CONFIG_ATA=y CONFIG_SATA_RCAR=yarch/arm/configs/lpc32xx_defconfig +1
-1@@ -53,12 +53,12 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_FW_LOADER is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_SLC_LPC32XX=y CONFIG_MTD_NAND_MLC_LPC32XX=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_CRYPTOLOOP=y CONFIG_BLK_DEV_RAM=yarch/arm/configs/multi_v5_defconfig +1
-0@@ -56,6 +56,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not setarch/arm/configs/multi_v7_defconfig +1
-0@@ -108,6 +108,7 @@ CONFIG_CMA_SIZE_MBYTES=64 CONFIG_OMAP_OCP2SCP=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_ICS932S401=y CONFIG_APDS9802ALS=yarch/arm/configs/mvebu_v5_defconfig +1
-0@@ -50,6 +50,7 @@ CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ORION=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_EEPROM_AT24=y # CONFIG_SCSI_PROC_FS is not setarch/arm/configs/mvebu_v7_defconfig +1
-0@@ -53,6 +53,7 @@ CONFIG_I2C_MV64XXX=y CONFIG_MTD=y CONFIG_MTD_CHAR=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_CFI_AMDSTD=yarch/arm/configs/mxs_defconfig +1
-0@@ -55,6 +55,7 @@ CONFIG_MTD_M25P80=y CONFIG_MTD_SST25L=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_GPMI_NAND=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y # CONFIG_BLK_DEV is not set CONFIG_EEPROM_AT24=yarch/arm/configs/sama5_defconfig +1
-1@@ -65,12 +65,12 @@ CONFIG_DEVTMPFS_MOUNT=y # CONFIG_PREVENT_FIRMWARE_BUILD is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ATMEL=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_GLUEBI=y CONFIG_PROC_DEVICETREE=yarch/arm/configs/shmobile_defconfig +1
-0@@ -43,6 +43,7 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_SD=y CONFIG_ATA=y CONFIG_SATA_RCAR=yarch/arm/configs/tegra_defconfig +0
-0
arch/arm/configs/tegra_defconfig CONFIG_DMA_CMA=y · line 96
Quoted 7 lines
arch/arm/configs/tegra_defconfig +1
-0@@ -90,6 +90,7 @@ CONFIG_DMA_CMA=y CONFIG_CMA_SIZE_MBYTES=64 CONFIG_MTD=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_AD525X_DPOT=y
I think we should not use the "select", since the SPI-NOR framework also depends on the MTD code.
For the mxs_defconfig and imx_v6_v7_defconfig
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisQuoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.
I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
So, this needs to be applied ASAP.
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the tegra_defconfig change to the Tegra tree.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 5 lines · Stephen Warren
Quoted 4 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.
Quoted 8 lines
Quoted 1 line
At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
So, this needs to be applied ASAP.
What's the status of this?
Quoted 4 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.
Probably the same for mvebu (Ccing Jason).
Signature · 3 lines
Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 7 lines · Ezequiel Garcia
Quoted 6 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.
Excuse my ignorance of the history of this bug, but shouldn't this be solved in the Kconfig logic? Since when do we solve config symbol dependency bugs in the defconfigs?
Quoted 7 lines
Quoted 6 lines
I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
So, this needs to be applied ASAP.
Quoted 8 lines
What's the status of this?
Quoted 4 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.Probably the same for mvebu (Ccing Jason).
confused.
Jason.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 7 lines · Jason Cooper
Quoted 6 lines · Ezequiel Garcia
Quoted 5 lines · Stephen Warren
Quoted 4 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.Excuse my ignorance of the history of this bug, but shouldn't this be solved in the
Kconfiglogic? Since when do we solve config symbol dependency bugs in the defconfigs?
Long story short: it was decided that select'ing this new symbol was not appropriate. Instead, it must be explicitly selected by the user, hence the defconfig fix.
The full story: https://lkml.org/lkml/2014/4/17/45
And in particular: https://lkml.org/lkml/2014/4/21/425
Signature · 3 lines
Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com
Jason Cooper
Acked-byRe: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 15 lines · Ezequiel Garcia
Quoted 7 lines · Jason Cooper
Quoted 6 lines · Ezequiel Garcia
Quoted 5 lines · Stephen Warren
Quoted 4 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.Excuse my ignorance of the history of this bug, but shouldn't this be solved in the
Kconfiglogic? Since when do we solve config symbol dependency bugs in the defconfigs?
Quoted 5 lines
Long story short: it was decided that select'ing this new symbol was not appropriate. Instead, it must be explicitly selected by the user, hence the defconfig fix.
The full story: https://lkml.org/lkml/2014/4/17/45
ahhh, it already depend's on MTD_SPI_NOR in Kconfig
ok, now it makes sense.
thx,
Jason.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Stephen WarrenHi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The SPI_NOR framework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, its Kconfig symbol name).
Quoted 5 lines
So, this needs to be applied ASAP.
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.
OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
I'll also rebase on linux-next. I think there may be a few conflicts.
Thanks,
Brian
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 24 lines · Brian Norris
Hi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The
SPI_NORframework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, itsKconfigsymbol name).Quoted 5 lines
So, this needs to be applied ASAP.
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.
Quoted 6 lines
OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
I'll also rebase on linux-next. I think there may be a few conflicts.
FWIW, I can take care of the patch for mvebu. Just drop it from your set and I'll prepare one for Jason.
Signature · 3 lines
Ezequiel Garc?a, Free Electrons Embedded Linux, Kernel and Android Engineering http://free-electrons.com
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 2 lines · Ezequiel Garcia
FWIW, I can take care of the patch for mvebu. Just drop it from your set and I'll prepare one for Jason.
I'm splitting all the others out, so I'll just keep the mvebu one (combined with Jason's other Marvell platforms) all together in my series, if you don't mind. Thanks for the offer though.
Brian
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisQuoted 9 lines · Brian Norris
Hi Stephen,
Quoted 6 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.
...
Quoted 7 lines
Quoted 3 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
Sorry, I have no idea how the other arches handle defconfigs:-(
I guess you could also just see if arm-soc ([email protected]) will take this patch, and deal with any merge conflicts that arise when they merge all the sub-arch defconfig changes. I CC'd them to find out if they think that's a better idea.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 4 lines · Stephen Warren
I guess you could also just see if arm-soc (arm at kernel.org) will take this patch, and deal with any merge conflicts that arise when they merge all the sub-arch defconfig changes. I CC'd them to find out if they think that's a better idea.
I'm preparing a split patch series and should send v2 shortly. A few of the unaccounted platforms + the multi-platform are lumped together for direct inclusion in arm-soc (?).
What is this arm at kernel.org you speak of? My Google-fu doesn't turn up a separate arm-soc email / mailing list, and it's not in MAINTAINERS.
Brian
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 6 lines · Brian Norris
Quoted 4 lines · Stephen Warren
I guess you could also just see if arm-soc (arm at kernel.org) will take this patch, and deal with any merge conflicts that arise when they merge all the sub-arch defconfig changes. I CC'd them to find out if they think that's a better idea.
Quoted 6 lines
I'm preparing a split patch series and should send v2 shortly. A few of the unaccounted platforms + the multi-platform are lumped together for direct inclusion in arm-soc (?).
What is this arm at kernel.org you speak of? My Google-fu doesn't turn up a separate arm-soc email / mailing list, and it's not in
MAINTAINERS.
It's the email address of the ARM SoC maintainers (Arnd, Olof, Kevin). All the ARM sub-architecture maintainers send their pull requests there, which all get aggregated and forwarded to Linus. They also take some patches directly, for cross-sub-architecture stuff like multi_v7_defconfig, or small amounts of bug-fixes after the main pull requests are sent.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisQuoted 5 lines · Brian Norris
OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
I'll also rebase on linux-next. I think there may be a few conflicts.
Hi Brian:
If we need to split the patch, please keep the mxs_defconfig and imx_v6_v7_defconfig in a single patch,
Shawn will review and merge or ack that patch.
thanks
Huang Shijie
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisQuoted 20 lines · Brian Norris
Hi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The
SPI_NORframework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, itsKconfigsymbol name).Quoted 2 lines
So, this needs to be applied ASAP.
Quoted 7 lines
Quoted 3 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
wrt arm-soc, typically they take all changes to multi_v7_defconfig directly since it is prone to conflicts. All the other ones are managed by the individual sub-arch maintainers.
Quoted 1 line
I'll also rebase on linux-next. I think there may be a few conflicts.
I can't speak for the other sub-archs, but I typically prefer that patches be based on an -rc tag, -rc1 if possible.
thx,
Jason.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 5 lines · Jason Cooper
Quoted 1 line · Brian Norris
I'll also rebase on linux-next. I think there may be a few conflicts.
I can't speak for the other sub-archs, but I typically prefer that patches be based on an -rc tag, -rc1 if possible.
OK, this was already based on -rc1. I'll leave it as-is, and maintainers can easily work out the conflicts.
Thanks,
Brian
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Jason CooperQuoted 29 lines · Jason Cooper
Quoted 20 lines · Brian Norris
Hi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The
SPI_NORframework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, itsKconfigsymbol name).Quoted 2 lines
So, this needs to be applied ASAP.
Quoted 7 lines
Quoted 3 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
Quoted 8 lines
wrt arm-soc, typically they take all changes to
multi_v7_defconfigdirectly since it is prone to conflicts. All the other ones are managed by the individual sub-arch maintainers.Quoted 1 line
I'll also rebase on linux-next. I think there may be a few conflicts.
I can't speak for the other sub-archs, but I typically prefer that patches be based on an -rc tag, -rc1 if possible.
This is making a trivial patch a pain to get merged.
Cases like these are easiest that we just take the patch directly in an early-merge branch (i.e. cleanup or fixes-non-critical, or a generic depends branch), and if there's conflicts as topics are merged in from subplatforms we can deal with it then.
-Olof
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 34 lines · Olof Johansson
Quoted 33 lines · Jason Cooper
Quoted 20 lines · Brian Norris
Hi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The
SPI_NORframework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, itsKconfigsymbol name).Quoted 2 lines
So, this needs to be applied ASAP.
Quoted 7 lines
Quoted 3 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
wrt arm-soc, typically they take all changes to
multi_v7_defconfigdirectly since it is prone to conflicts. All the other ones are managed by the individual sub-arch maintainers.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I'll also rebase on linux-next. I think there may be a few conflicts.
I can't speak for the other sub-archs, but I typically prefer that patches be based on an -rc tag, -rc1 if possible.
This is making a trivial patch a pain to get merged.
Sorry.
Quoted 4 lines
Cases like these are easiest that we just take the patch directly in an early-merge branch (i.e. cleanup or fixes-non-critical, or a generic depends branch), and if there's conflicts as topics are merged in from subplatforms we can deal with it then.
Are you referring to basing on -rc1, or the series being split up to the individual sub-arch maintainers?
*slightly* confused,
Jason.
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 35 lines · Jason Cooper
Quoted 34 lines · Olof Johansson
Quoted 33 lines · Jason Cooper
Quoted 20 lines · Brian Norris
Hi Stephen,
Quoted 10 lines · Stephen Warren
Quoted 5 lines · Brian Norris
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.I hadn't realized that the problem this patch solves was already present in the code, so this patch is simply catching up the defconfigs rather than part of a series which changed the code to cause the problem.
Yes, this is "catching up the defconfigs." The
SPI_NORframework is new, and I didn't want to generate defconfig noise until a few things stabilized (particularly, itsKconfigsymbol name).Quoted 2 lines
So, this needs to be applied ASAP.
Quoted 7 lines
Quoted 3 lines
I think this should be split it up so that each defconfig can go through the tree that owns it to avoid conflicts. If you repost split up, I can apply the
tegra_defconfigchange to the Tegra tree.OK, I'll try to split it up. Is ARM unique in tracking defconfigs in separate trees? I assume MIPS, PowerPC, and Blackfin won't require the same splitting? I'd like to avoid 31 patches when <20 could suffice.
wrt arm-soc, typically they take all changes to
multi_v7_defconfigdirectly since it is prone to conflicts. All the other ones are managed by the individual sub-arch maintainers.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
I'll also rebase on linux-next. I think there may be a few conflicts.
I can't speak for the other sub-archs, but I typically prefer that patches be based on an -rc tag, -rc1 if possible.
This is making a trivial patch a pain to get merged.
Sorry.
No worries.
Quoted 9 lines
Quoted 4 lines
Cases like these are easiest that we just take the patch directly in an early-merge branch (i.e. cleanup or fixes-non-critical, or a generic depends branch), and if there's conflicts as topics are merged in from subplatforms we can deal with it then.
Are you referring to basing on -rc1, or the series being split up to the individual sub-arch maintainers?
*slightly* confused,
I'm referring to us taking the patch into something like our cleanup branch, and any branches that come in from you or other subplatforms will be merged on top, so we can resolve conflicts there and then. We'll merge in the cleanup branch into other next/* branches as needed to resolve the conflicts in our tree instead of percolating them all the way up.
-Olof
Re: [PATCH 1/5] ARM: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 10 lines · Olof Johansson
Quoted 9 lines · Jason Cooper
Quoted 4 lines · Olof Johansson
Cases like these are easiest that we just take the patch directly in an early-merge branch (i.e. cleanup or fixes-non-critical, or a generic depends branch), and if there's conflicts as topics are merged in from subplatforms we can deal with it then.
Are you referring to basing on -rc1, or the series being split up to the individual sub-arch maintainers?
Quoted 8 lines
Quoted 1 line
*slightly* confused,
I'm referring to us taking the patch into something like our cleanup branch, and any branches that come in from you or other subplatforms will be merged on top, so we can resolve conflicts there and then. We'll merge in the cleanup branch into other next/* branches as needed to resolve the conflicts in our tree instead of percolating them all the way up.
In case you didn't notice, I already had split up the patch series a little more for v2 (based on -rc1 still), and most of it seems to be going through the sub-arch trees, I think. There is one patch targeted directly at arm-soc (that's you, Olof?).
Let me know if v2 has any problems.
Thanks,
Brian
PATCH 2/5 blackfin: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisThese defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs.
At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol.
---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git +spinor
arch/blackfin/configs/BF526-EZBRD_defconfig | 2 +- arch/blackfin/configs/BF527-EZKIT-V2_defconfig | 2 +- arch/blackfin/configs/BF527-EZKIT_defconfig | 2 +- arch/blackfin/configs/BF548-EZKIT_defconfig | 2 +- arch/blackfin/configs/BF609-EZKIT_defconfig | 2 +- arch/blackfin/configs/BlackStamp_defconfig | 3 +-- arch/blackfin/configs/H8606_defconfig | 3 +-- 7 files changed, 7 insertions(+), 9 deletions(-)
arch/blackfin/configs/BF526-EZBRD_defconfig +1 -1
@@ -53,7 +53,6 @@ CONFIG_IP_PNP=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y
@@ -63,6 +62,7 @@ CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=m +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y CONFIG_SCSI=y # CONFIG_SCSI_PROC_FS is not set
arch/blackfin/configs/BF527-EZKIT-V2_defconfig +1 -1
@@ -58,7 +58,6 @@ CONFIG_BFIN_SIR0=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=m CONFIG_MTD_BLOCK=y CONFIG_MTD_JEDECPROBE=m CONFIG_MTD_RAM=y
@@ -66,6 +65,7 @@ CONFIG_MTD_ROM=m CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=m +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y CONFIG_SCSI=y # CONFIG_SCSI_PROC_FS is not set
arch/blackfin/configs/BF527-EZKIT_defconfig +1 -1
@@ -57,7 +57,6 @@ CONFIG_BFIN_SIR0=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=m CONFIG_MTD_BLOCK=y CONFIG_MTD_JEDECPROBE=m CONFIG_MTD_RAM=y
@@ -65,6 +64,7 @@ CONFIG_MTD_ROM=m CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=m +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y CONFIG_SCSI=y # CONFIG_SCSI_PROC_FS is not set
arch/blackfin/configs/BF548-EZKIT_defconfig +1 -1
@@ -64,7 +64,6 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_FW_LOADER=m CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y
@@ -75,6 +74,7 @@ CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_BF5XX=y # CONFIG_MTD_NAND_BF5XX_HWECC is not set +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y # CONFIG_SCSI_PROC_FS is not set CONFIG_BLK_DEV_SD=y
arch/blackfin/configs/BF609-EZKIT_defconfig +1 -1
@@ -57,7 +57,6 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" CONFIG_FW_LOADER=m CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y
@@ -65,6 +64,7 @@ CONFIG_MTD_CFI_STAA=y CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=m CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y
arch/blackfin/configs/BlackStamp_defconfig +1 -2
@@ -45,7 +45,6 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FW_LOADER is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=m CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=m CONFIG_MTD_CFI_AMDSTD=m
@@ -53,7 +52,7 @@ CONFIG_MTD_RAM=y CONFIG_MTD_ROM=m CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_M25P80=y -# CONFIG_M25PXX_USE_FAST_READ is not set +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_NBD=y CONFIG_BLK_DEV_RAM=y
arch/blackfin/configs/H8606_defconfig +1 -2
@@ -36,13 +36,12 @@ CONFIG_IRTTY_SIR=m # CONFIG_WIRELESS is not set # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_RAM=y CONFIG_MTD_ROM=y CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_M25P80=y -# CONFIG_M25PXX_USE_FAST_READ is not set +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y CONFIG_MISC_DEVICES=y CONFIG_EEPROM_AT25=y
Signature · 1 line
1.8.3.2
PATCH 3/5 mips: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisThese defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs.
At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol.
---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git +spinor
arch/mips/configs/ath79_defconfig | 3 +-- arch/mips/configs/db1xxx_defconfig | 1 + arch/mips/configs/rt305x_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/mips/configs/ath79_defconfig +1 -2
@@ -46,7 +46,6 @@ CONFIG_MTD=y CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2 CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y
@@ -54,7 +53,7 @@ CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y -# CONFIG_M25PXX_USE_FAST_READ is not set +CONFIG_MTD_SPI_NOR=y CONFIG_NETDEVICES=y # CONFIG_NET_PACKET_ENGINE is not set CONFIG_ATH_COMMON=m
arch/mips/configs/db1xxx_defconfig +1 -0
@@ -113,6 +113,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ECC_BCH=y CONFIG_MTD_NAND_AU1550=y CONFIG_MTD_NAND_PLATFORM=y +CONFIG_MTD_SPI_NOR=y CONFIG_EEPROM_AT24=y CONFIG_EEPROM_AT25=y CONFIG_SCSI_TGT=y
arch/mips/configs/rt305x_defconfig +1 -1
@@ -81,7 +81,6 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FIRMWARE_IN_KERNEL is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_AMDSTD=y
@@ -89,6 +88,7 @@ CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_EEPROM_93CX6=m CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y
Signature · 1 line
1.8.3.2
Re: [PATCH 3/5] mips: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
2014-04-17 0:21 GMT-07:00 Brian Norris <[email protected]>:
Quoted 3 lines
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.
so CONFIG_M25P80 should select CONFIG_MTD_SPI_NOR, right? in that case, I do not think this is needed at all, as it would be automatically picked up during the build and if someone refreshes the defconfigs, although it cannot hurt.
Quoted 74 lines
At the same time, drop the now-nonexistent
CONFIG_MTD_CHARsymbol.Signed-off-by Brian Norris <[email protected]>Cc Ralf Baechle <[email protected]>---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git+spinorarch/mips/configs/ath79_defconfig | 3 +-- arch/mips/configs/db1xxx_defconfig | 1 + arch/mips/configs/rt305x_defconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)arch/mips/configs/ath79_defconfig +1
-2@@ -46,7 +46,6 @@ CONFIG_MTD=y CONFIG_MTD_REDBOOT_PARTS=y CONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-2 CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_JEDECPROBE=y@@ -54,7 +53,7 @@ CONFIG_MTD_CFI_AMDSTD=y CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_M25P80=y -# CONFIG_M25PXX_USE_FAST_READ is not set +CONFIG_MTD_SPI_NOR=y CONFIG_NETDEVICES=y # CONFIG_NET_PACKET_ENGINE is not set CONFIG_ATH_COMMON=march/mips/configs/db1xxx_defconfig +1
-0@@ -113,6 +113,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_ECC_BCH=y CONFIG_MTD_NAND_AU1550=y CONFIG_MTD_NAND_PLATFORM=y +CONFIG_MTD_SPI_NOR=y CONFIG_EEPROM_AT24=y CONFIG_EEPROM_AT25=y CONFIG_SCSI_TGT=yarch/mips/configs/rt305x_defconfig +1
-2@@ -81,7 +81,6 @@ CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FIRMWARE_IN_KERNEL is not set CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_AMDSTD=y@@ -89,6 +88,7 @@ CONFIG_MTD_COMPLEX_MAPPINGS=y CONFIG_MTD_PHYSMAP=y CONFIG_MTD_PHYSMAP_OF=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_EEPROM_93CX6=m CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y --1.8.3.2
Signature · 1 line
Florian
Re: [PATCH 3/5] mips: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
Quoted 9 lines · Florian Fainelli
2014-04-17 0:21 GMT-07:00 Brian Norris <[email protected]>:
Quoted 3 lines
These defconfigs contain the
CONFIG_M25P80symbol, which is now dependent on theMTD_SPI_NORsymbol. AddCONFIG_MTD_SPI_NORto the relevant defconfigs.so
CONFIG_M25P80should selectCONFIG_MTD_SPI_NOR, right? in that case, I do not think this is needed at all, as it would be automatically picked up during the build and if someone refreshes the defconfigs, although it cannot hurt.
Can you reply to the cover letter? 3 people have made the same comment, and I had a rebuttal that I'm not sure if anyone considered yet.
(And it wouldn't be picked up by 'savedefconfig', since it saves a minimal .config; when one symbol 'select's another, the latter is not needed in the defconfig)
Brian
PATCH 4/5 powerpc: defconfigs: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisThese defconfigs contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR to the relevant defconfigs.
At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol.
---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git +spinor
arch/powerpc/configs/corenet32_smp_defconfig | 2 +- arch/powerpc/configs/corenet64_smp_defconfig | 2 +- arch/powerpc/configs/mpc85xx_defconfig | 2 +- arch/powerpc/configs/mpc85xx_smp_defconfig | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
arch/powerpc/configs/corenet32_smp_defconfig +1 -1
@@ -69,7 +69,6 @@ CONFIG_DEVTMPFS=y CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_AMDSTD=y
@@ -78,6 +77,7 @@ CONFIG_MTD_M25P80=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_FSL_ELBC=y CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_SPI_NOR=y CONFIG_PROC_DEVICETREE=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y
arch/powerpc/configs/corenet64_smp_defconfig +1 -1
@@ -61,7 +61,6 @@ CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_OF_PARTS=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y CONFIG_FTL=y
@@ -82,6 +81,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_IDS=y CONFIG_MTD_NAND_FSL_ELBC=y CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_RESERVE=1
arch/powerpc/configs/mpc85xx_defconfig +1 -1
@@ -83,7 +83,6 @@ CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_OF_PARTS=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y CONFIG_FTL=y
@@ -104,6 +103,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_IDS=y CONFIG_MTD_NAND_FSL_ELBC=y CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_RESERVE=1
arch/powerpc/configs/mpc85xx_smp_defconfig +1 -1
@@ -86,7 +86,6 @@ CONFIG_DEVTMPFS_MOUNT=y CONFIG_MTD=y CONFIG_MTD_OF_PARTS=y CONFIG_MTD_CMDLINE_PARTS=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLKDEVS=y CONFIG_MTD_BLOCK=y CONFIG_FTL=y
@@ -107,6 +106,7 @@ CONFIG_MTD_NAND=y CONFIG_MTD_NAND_IDS=y CONFIG_MTD_NAND_FSL_ELBC=y CONFIG_MTD_NAND_FSL_IFC=y +CONFIG_MTD_SPI_NOR=y CONFIG_MTD_UBI=y CONFIG_MTD_UBI_WL_THRESHOLD=4096 CONFIG_MTD_UBI_BEB_RESERVE=1
Signature · 1 line
1.8.3.2
PATCH 5/5 sh: defconfig: add MTD_SPI_NOR (new dependency for M25P80)
In reply to Brian NorrisThis defconfig contain the CONFIG_M25P80 symbol, which is now dependent on the MTD_SPI_NOR symbol. Add CONFIG_MTD_SPI_NOR.
At the same time, drop the now-nonexistent CONFIG_MTD_CHAR symbol.
---
This change is based on l2-mtd.git/spinor, which is based on 3.15-rc1:
git://git.infradead.org/l2-mtd.git +spinor
arch/sh/configs/sh7757lcr_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/sh/configs/sh7757lcr_defconfig +1 -1
@@ -38,9 +38,9 @@ CONFIG_IPV6=y CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug" # CONFIG_FW_LOADER is not set CONFIG_MTD=y -CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_M25P80=y +CONFIG_MTD_SPI_NOR=y CONFIG_BLK_DEV_RAM=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y
Signature · 1 line
1.8.3.2
Quoted 7 lines · Brian Norris
Hi all,
We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver for its abstraction and moves this code into a spi-nor module.
If this is a common library, then the more common approach to solve this would be to have each driver that uses it to select MTD_SPI_NOR rather than depend on it. That way you can drop this whole series to update the default configurations.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20140417/d37d6536/attachment-0001.sig>
Hi,
Quoted 11 lines · Thierry Reding
Quoted 5 lines · Brian Norris
We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver for its abstraction and moves this code into a spi-nor module.
If this is a common library, then the more common approach to solve this would be to have each driver that uses it to select
MTD_SPI_NORrather than depend on it. That way you can drop this whole series to update the default configurations.
But does MTD_SPI_NOR (and drivers/mtd/spi-nor/) qualify as a "library" or as a "subsystem"? I thought the latter were typically expected to be user-selectable options, not automatically-"select"ed.
I would say that, except for its age, MTD_SPI_NOR is very similar in to MTD_NAND (driver/mtd/nand/), which I'd consider a kind of subsystem, and which users must select before they are asked about drivers which fall under its category.
Perhaps my usage of the word "library" in the description was a mistake, as I don't exactly consider it like a library in the sense of many other "select"ed libraries.
Brian
Marek Vasut
Acked-byQuoted 10 lines · Brian Norris
Hi,
Quoted 7 lines · Thierry Reding
Quoted 5 lines · Brian Norris
We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver for its abstraction and moves this code into a spi-nor module.
Quoted 8 lines
Quoted 4 lines
If this is a common library, then the more common approach to solve this would be to have each driver that uses it to select
MTD_SPI_NORrather than depend on it. That way you can drop this whole series to update the default configurations.But does
MTD_SPI_NOR(anddrivers/mtd/spi-nor/) qualify as a "library" or as a "subsystem"? I thought the latter were typically expected to be user-selectable options, not automatically-"select"ed.
I agree the "subsystem" is user-selectable while the "library" is to be 'select'ed .
Quoted 8 lines
I would say that, except for its age,
MTD_SPI_NORis very similar in toMTD_NAND(driver/mtd/nand/), which I'd consider a kind of subsystem, and which users must select before they are asked about drivers which fall under its category.Perhaps my usage of the word "library" in the description was a mistake, as I don't exactly consider it like a library in the sense of many other "select"ed libraries.
It did look like a library to me at first, but it's rather a subsystem that contains a small library in it. Thus, I retract my previous comment about using 'select' and add :
Best regards,
Marek Vasut
Quoted 8 lines · Brian Norris
Hi all,
We are introducing a new SPI-NOR library/framework for MTD, to support various types of SPI-NOR flash controllers which require (or benefit from) intimate knowledge of the flash interface, rather than just the relatively dumb SPI interface. This library borrows much of the m25p80 driver for its abstraction and moves this code into a spi-nor module.
Quoted 6 lines
This means
CONFIG_M25P80now has a dependency onCONFIG_MTD_SPI_NOR, which should be added to the defconfigs. I'm not sure what is the best process for doing this. Should each $ARCH maintainer just take their respective patch, even if theMTD_SPI_NORKconfigsymbol is not defined for them yet? Or should maintainers plan on merging the relevant SPI-NOR code into their trees during the development cycle? Or some third option?
Shouldn't the M25P80 driver just "select" the SPI NOR framework? Then you won't need the adjustment to defconfigs at all I think.
Best regards,
Marek Vasut