mtd: rawnand: Improve compile-test coverage
Subsystems (6)
cover mtd: rawnand: Improve compile-test coverage
Hello,
This is an attempt at adding "depends || COMPILE_TEST" to all NAND drivers that have no compile-time dependencies on arch features/headers.
This will hopefully help us (NAND/MTD maintainers) in detecting build issues earlier. Unfortunately we still have a few drivers that can't easily be modified to be arch independent.
I tried to put all patches that only touch the NAND subsystem first, so that they can be applied even if other patches are being discussed.
Don't hesitate to point any missing dependencies when compiled with COMPILE_TEST. I didn't have any problem when compiling, but that might be because the dependencies were already selected.
I have Question for Geert. I know you worked on HAS_DMA removal when combined with COMPILE_TEST, do you plan to do something similar with HAS_IOMEM?
Regards,
Boris
Boris Brezillon (27):
mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND
mtd: rawnand: Add 'depends on HAS_IOMEM' where missing
mtd: rawnand: atmel: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: omap2: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: s3c2410: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers
mtd: rawnand: sharpsl: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: lpc32xx: Allow selection of these drivers when
COMPILE_TEST=y
mtd: rawnand: brcmnand: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: orion: Avoid direct inclusion of asm headers
mtd: rawnand: orion: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: mxc: Avoid inclusion of asm/mach headers
mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: davinci: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: sunxi: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: qcom: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: nuc900: Allow selection of this driver when
COMPILE_TEST=y
memory: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: fsl_ifc: Allow selection of this driver when
COMPILE_TEST=y
bcma: Allow selection of this driver when COMPILE_TEST=y
MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9
mtd: rawnand: txx9ndfmc: Allow selection of this driver when
COMPILE_TEST=y
MIPS: jz4740: Move jz4740_nand.h header to
include/linux/platform_data/jz4740
mtd: rawnand: jz4740: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780
memory: jz4780-nemc: Allow selection of this driver when
COMPILE_TEST=y
arch/mips/jz4740/board-qi_lb60.c | 3 +-
arch/mips/txx9/generic/setup.c | 2 +-
arch/mips/txx9/generic/setup_tx4938.c | 2 +-
arch/mips/txx9/generic/setup_tx4939.c | 2 +-
drivers/bcma/Kconfig | 3 +-
drivers/memory/Kconfig | 6 ++-
drivers/mtd/nand/raw/Kconfig | 61 +++++++++++++++-------
drivers/mtd/nand/raw/jz4740_nand.c | 2 +-
drivers/mtd/nand/raw/mxc_nand.c | 2 -
drivers/mtd/nand/raw/orion_nand.c | 2 +-
drivers/mtd/nand/raw/sharpsl.c | 5 +-
drivers/mtd/nand/raw/txx9ndfmc.c | 2 +-
.../linux/platform_data/jz4740}/jz4740_nand.h | 4 +-
.../linux/platform_data}/txx9/ndfmc.h | 6 +--
14 files changed, 61 insertions(+), 41 deletions(-)
rename {arch/mips/include/asm/mach-jz4740 => include/linux/platform_data/jz4740}/jz4740_nand.h (91%)
rename {arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h (91%)Signature · 1 line
2.14.1
PATCH 1/27 mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND
The MTD_NAND_GPMI_NAND entry is already defined in an 'if MTD_NAND' block, no need to add an extra "depends on MTD_NAND".
--- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +1 -1
@@ -340,7 +340,7 @@ config MTD_NAND_NANDSIM config MTD_NAND_GPMI_NAND tristate "GPMI NAND Flash Controller driver" - depends on MTD_NAND && MXS_DMA + depends on MXS_DMA help Enables NAND Flash support for IMX23, IMX28 or IMX6. The GPMI controller is very powerful, with the help of BCH
Signature · 1 line
2.14.1
PATCH 2/27 mtd: rawnand: Add 'depends on HAS_IOMEM' where missing
In reply to Boris BrezillonWhen COMPILE_TEST is allowed and the platform needs uses the iomem API we need to add an explicit dependency on HAS_IOMEM to avoid selection of these drivers when building for an arch that has no iomem support (this is the case of arch/um).
--- drivers/mtd/nand/raw/Kconfig | 4 ++++ 1 file changed, 4 insertions(+)
drivers/mtd/nand/raw/Kconfig +4 -0
@@ -152,6 +152,7 @@ config MTD_NAND_S3C2410_CLKSTOP config MTD_NAND_TANGO tristate "NAND Flash support for Tango chips" depends on ARCH_TANGO || COMPILE_TEST + depends on HAS_IOMEM help Enables the NAND Flash controller on Tango chips.
@@ -513,6 +514,7 @@ config MTD_NAND_SUNXI config MTD_NAND_HISI504 tristate "Support for NAND controller on Hisilicon SoC Hip04" depends on ARCH_HISI || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND controller on Hisilicon SoC Hip04.
@@ -526,6 +528,7 @@ config MTD_NAND_QCOM config MTD_NAND_MTK tristate "Support for NAND controller on MTK SoCs" depends on ARCH_MEDIATEK || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND controller on MTK SoCs. This controller is found on mt27xx, mt81xx, mt65xx SoCs.
@@ -533,6 +536,7 @@ config MTD_NAND_MTK config MTD_NAND_TEGRA tristate "Support for NAND controller on NVIDIA Tegra" depends on ARCH_TEGRA || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND flash controller on NVIDIA Tegra SoC. The driver has been developed and tested on a Tegra 2 SoC. DMA
Signature · 1 line
2.14.1
PATCH 3/27 mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_AT91 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -275,7 +275,8 @@ config MTD_NAND_CS553X config MTD_NAND_ATMEL tristate "Support for NAND Flash / SmartMedia on AT91" - depends on ARCH_AT91 + depends on ARCH_AT91 || COMPILE_TEST + depends on HAS_IOMEM select MFD_ATMEL_SMC help Enables support for NAND Flash / Smart Media Card interface
Signature · 1 line
2.14.1
PATCH 4/27 mtd: rawnand: omap2: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_OMAP2PLUS or ARCH_KEYSTONE enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -77,7 +77,8 @@ config MTD_NAND_AMS_DELTA config MTD_NAND_OMAP2 tristate "NAND Flash device on OMAP2, OMAP3, OMAP4 and Keystone" - depends on (ARCH_OMAP2PLUS || ARCH_KEYSTONE) + depends on ARCH_OMAP2PLUS || ARCH_KEYSTONE || COMPILE_TEST + depends on HAS_IOMEM help Support for NAND flash on Texas Instruments OMAP2, OMAP3, OMAP4 and Keystone platforms.
Signature · 1 line
2.14.1
PATCH 5/27 mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_S3C24XX or ARCH_S3C64XX enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -119,7 +119,8 @@ config MTD_NAND_AU1550 config MTD_NAND_S3C2410 tristate "NAND Flash support for Samsung S3C SoCs" - depends on ARCH_S3C24XX || ARCH_S3C64XX + depends on ARCH_S3C24XX || ARCH_S3C64XX || COMPILE_TEST + depends on HAS_IOMEM help This enables the NAND flash controller on the S3C24xx and S3C64xx SoCs
Signature · 1 line
2.14.1
PATCH 6/27 mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers
In reply to Boris BrezillonWe don't need mach/hardware.h and sm/mach-types.h, and asm/io.h can be replaced by linux/io.h.
Now that we removed those inclusions, we're ready to allow selection of this driver when COMPILE_TEST=y.
--- drivers/mtd/nand/raw/sharpsl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
drivers/mtd/nand/raw/sharpsl.c +1 -4
@@ -21,10 +21,7 @@#include <linux/mtd/sharpsl.h> #include <linux/interrupt.h> #include <linux/platform_device.h> - -#include <asm/io.h> -#include <mach/hardware.h> -#include <asm/mach-types.h> +#include <linux/io.h> struct sharpsl_nand {struct nand_chip chip;
Signature · 1 line
2.14.1
PATCH 7/27 mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_PXA enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -250,7 +250,8 @@ config MTD_NAND_DOCG4 config MTD_NAND_SHARPSL tristate "Support for NAND Flash on Sharp SL Series (C7xx + others)" - depends on ARCH_PXA + depends on ARCH_PXA || COMPILE_TEST + depends on HAS_IOMEM config MTD_NAND_CAFE tristate "NAND support for OLPC CAFÉ chip"
Signature · 1 line
2.14.1
PATCH 8/27 mtd: rawnand: lpc32xx: Allow selection of these drivers when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test these drivers without having ARCH_LPC32XX enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/mtd/nand/raw/Kconfig +4 -2
@@ -299,7 +299,8 @@ config MTD_NAND_MARVELL config MTD_NAND_SLC_LPC32XX tristate "NXP LPC32xx SLC Controller" - depends on ARCH_LPC32XX + depends on ARCH_LPC32XX || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NXP's LPC32XX SLC (i.e. for Single Level Cell chips) NAND controller. This is the default for the PHYTEC 3250
@@ -310,7 +311,8 @@ config MTD_NAND_SLC_LPC32XX config MTD_NAND_MLC_LPC32XX tristate "NXP LPC32xx MLC Controller" - depends on ARCH_LPC32XX + depends on ARCH_LPC32XX || COMPILE_TEST + depends on HAS_IOMEM help Uses the LPC32XX MLC (i.e. for Multi Level Cell chips) NAND controller. This is the default for the WORK92105 controller
Signature · 1 line
2.14.1
PATCH 9/27 mtd: rawnand: brcmnand: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARM, ARM64 or MIPS enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -356,7 +356,8 @@ config MTD_NAND_GPMI_NAND config MTD_NAND_BRCMNAND tristate "Broadcom STB NAND controller" - depends on ARM || ARM64 || MIPS + depends on ARM || ARM64 || MIPS || COMPILE_TEST + depends on HAS_IOMEM help Enables the Broadcom NAND controller driver. The controller was originally designed for Set-Top Box but is used on various BCM7xxx,
Signature · 1 line
2.14.1
PATCH 10/27 mtd: rawnand: orion: Avoid direct inclusion of asm headers
In reply to Boris BrezillonInclude linux/sizes.h instead of asm/sizes.h to make code completely arch independent.
--- drivers/mtd/nand/raw/orion_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/orion_nand.c +1 -1
@@ -18,7 +18,7 @@#include <linux/clk.h> #include <linux/err.h> #include <linux/io.h> -#include <asm/sizes.h> +#include <linux/sizes.h> #include <linux/platform_data/mtd-orion_nand.h> struct orion_nand_info {
Signature · 1 line
2.14.1
PATCH 11/27 mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having PLAT_ORION enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -381,7 +381,8 @@ config MTD_NAND_PLATFORM config MTD_NAND_ORION tristate "NAND Flash support for Marvell Orion SoC" - depends on PLAT_ORION + depends on PLAT_ORION || COMPILE_TEST + depends on HAS_IOMEM help This enables the NAND flash controller on Orion machines.
Signature · 1 line
2.14.1
PATCH 12/27 mtd: rawnand: mxc: Avoid inclusion of asm/mach headers
In reply to Boris Brezillonasm/mach/flash.h does not seem to be needed, drop this #include to make the code completely machine and arch independent and allow one to compile it when COMPILE_TEST=y.
--- drivers/mtd/nand/raw/mxc_nand.c | 2 -- 1 file changed, 2 deletions(-)
drivers/mtd/nand/raw/mxc_nand.c +0 -2
@@ -34,8 +34,6 @@#include <linux/completion.h> #include <linux/of.h> #include <linux/of_device.h> - -#include <asm/mach/flash.h> #include <linux/platform_data/mtd-mxc_nand.h> #define DRIVER_NAME "mxc_nand"
Signature · 1 line
2.14.1
PATCH 13/27 mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_MXC enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -446,7 +446,8 @@ config MTD_NAND_VF610_NFC config MTD_NAND_MXC tristate "MXC NAND support" - depends on ARCH_MXC + depends on ARCH_MXC || COMPILE_TEST + depends on HAS_IOMEM help This enables the driver for the NAND flash controller on the MXC processors.
Signature · 1 line
2.14.1
PATCH 14/27 mtd: rawnand: davinci: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_DAVINCI or ARCH_KEYSTONE enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -462,7 +462,8 @@ config MTD_NAND_SH_FLCTL config MTD_NAND_DAVINCI tristate "Support NAND on DaVinci/Keystone SoC" - depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) + depends on ARCH_DAVINCI || (ARCH_KEYSTONE && TI_AEMIF) || COMPILE_TEST + depends on HAS_IOMEM help Enable the driver for NAND flash chips on Texas Instruments DaVinci/Keystone processors.
Signature · 1 line
2.14.1
PATCH 15/27 mtd: rawnand: sunxi: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_SUNXI enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -517,7 +517,8 @@ config MTD_NAND_XWAY config MTD_NAND_SUNXI tristate "Support for NAND on Allwinner SoCs" - depends on ARCH_SUNXI + depends on ARCH_SUNXI || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND Flash chips on Allwinner SoCs.
Signature · 1 line
2.14.1
PATCH 16/27 mtd: rawnand: qcom: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_QCOM enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -531,7 +531,8 @@ config MTD_NAND_HISI504 config MTD_NAND_QCOM tristate "Support for NAND on QCOM SoCs" - depends on ARCH_QCOM + depends on ARCH_QCOM || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND flash chips on SoCs containing the EBI2 NAND controller. This controller is found on IPQ806x SoC.
Signature · 1 line
2.14.1
PATCH 17/27 mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having PLAT_SPEAR, ARCH_NOMADIK, ARCH_U8500 or MACH_U300 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/mtd/nand/raw/Kconfig +3 -2
@@ -502,8 +502,9 @@ config MTD_NAND_JZ4780 config MTD_NAND_FSMC tristate "Support for NAND on ST Micros FSMC" - depends on OF - depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 + depends on OF && HAS_IOMEM + depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 || \ + COMPILE_TEST help Enables support for NAND Flash chips on the ST Microelectronics Flexible Static Memory Controller (FSMC)
Signature · 1 line
2.14.1
PATCH 18/27 mtd: rawnand: nuc900: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having ARCH_W90X900 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -482,7 +482,8 @@ config MTD_NAND_SOCRATES config MTD_NAND_NUC900 tristate "Support for NAND on Nuvoton NUC9xx/w90p910 evaluation boards." - depends on ARCH_W90X900 + depends on ARCH_W90X900 || COMPILE_TEST + depends on HAS_IOMEM help This enables the driver for the NAND Flash on evaluation board based on w90p910 / NUC9xx.
Signature · 1 line
2.14.1
PATCH 19/27 memory: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes maintainers' life easier by allowing them to compile-test this driver without having FSL_SOC, ARCH_LAYERSCAPE or SOC_LS1021A enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/memory/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/memory/Kconfig +2 -1
@@ -116,7 +116,8 @@ config FSL_CORENET_CF config FSL_IFC bool - depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A + depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST + depends on HAS_IOMEM config JZ4780_NEMC bool "Ingenic JZ4780 SoC NEMC driver"
Signature · 1 line
2.14.1
PATCH 20/27 mtd: rawnand: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes maintainers' life easier by allowing them to compile-test this driver without having FSL_SOC, ARCH_LAYERSCAPE or SOC_LS1021A enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -408,7 +408,8 @@ config MTD_NAND_FSL_ELBC config MTD_NAND_FSL_IFC tristate "NAND support for Freescale IFC controller" - depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A + depends on FSL_SOC || ARCH_LAYERSCAPE || SOC_LS1021A || COMPILE_TEST + depends on HAS_IOMEM select FSL_IFC select MEMORY help
Signature · 1 line
2.14.1
PATCH 21/27 bcma: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonThis allows us to increase compile-test coverage without having to build a kernel for MIPS. That's particularly interesting for subsystem maintainers that want to test as many drivers as possible in a single build.
We also add a dependency on HAS_IOMEM in BCMA_HOST_SOC to make sure the driver is not selected when the arch does not implement IO accessors.
--- drivers/bcma/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/bcma/Kconfig +2 -1
@@ -30,6 +30,7 @@ config BCMA_HOST_PCI config BCMA_HOST_SOC bool "Support for BCMA in a SoC" + depends on HAS_IOMEM help Host interface for a Broadcom AIX bus directly mapped into the memory. This only works with the Broadcom SoCs from the
@@ -61,7 +62,7 @@ config BCMA_DRIVER_PCI_HOSTMODE config BCMA_DRIVER_MIPS bool "BCMA Broadcom MIPS core driver" - depends on MIPS + depends on MIPS || COMPILE_TEST help Driver for the Broadcom MIPS core attached to Broadcom specific Advanced Microcontroller Bus.
Signature · 1 line
2.14.1
PATCH 22/27 MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9
In reply to Boris BrezillonThis way we will be able to compile the ndfmc driver when COMPILE_TEST=y.
---
arch/mips/txx9/generic/setup.c | 2 +-
arch/mips/txx9/generic/setup_tx4938.c | 2 +-
arch/mips/txx9/generic/setup_tx4939.c | 2 +-
drivers/mtd/nand/raw/txx9ndfmc.c | 2 +-
{arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h | 6 +++---
5 files changed, 7 insertions(+), 7 deletions(-)
rename {arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h (91%)arch/mips/txx9/generic/setup.c +1 -1
@@ -20,6 +20,7 @@#include <linux/err.h> #include <linux/gpio/driver.h> #include <linux/platform_device.h> +#include <linux/platform_data/txx9/ndfmc.h> #include <linux/serial_core.h> #include <linux/mtd/physmap.h> #include <linux/leds.h>
@@ -35,7 +36,6 @@#include <asm/txx9/generic.h> #include <asm/txx9/pci.h> #include <asm/txx9tmr.h> -#include <asm/txx9/ndfmc.h> #include <asm/txx9/dmac.h> #ifdef CONFIG_CPU_TX49XX #include <asm/txx9/tx4938.h>
arch/mips/txx9/generic/setup_tx4938.c +1 -1
@@ -17,13 +17,13 @@#include <linux/ptrace.h> #include <linux/mtd/physmap.h> #include <linux/platform_device.h> +#include <linux/platform_data/txx9/ndfmc.h> #include <asm/reboot.h> #include <asm/traps.h> #include <asm/txx9irq.h> #include <asm/txx9tmr.h> #include <asm/txx9pio.h> #include <asm/txx9/generic.h> -#include <asm/txx9/ndfmc.h> #include <asm/txx9/dmac.h> #include <asm/txx9/tx4938.h>
arch/mips/txx9/generic/setup_tx4939.c +1 -1
@@ -21,13 +21,13 @@#include <linux/ptrace.h> #include <linux/mtd/physmap.h> #include <linux/platform_device.h> +#include <linux/platform_data/txx9/ndfmc.h> #include <asm/bootinfo.h> #include <asm/reboot.h> #include <asm/traps.h> #include <asm/txx9irq.h> #include <asm/txx9tmr.h> #include <asm/txx9/generic.h> -#include <asm/txx9/ndfmc.h> #include <asm/txx9/dmac.h> #include <asm/txx9/tx4939.h>
drivers/mtd/nand/raw/txx9ndfmc.c +1 -1
@@ -20,7 +20,7 @@#include <linux/mtd/nand_ecc.h> #include <linux/mtd/partitions.h> #include <linux/io.h> -#include <asm/txx9/ndfmc.h> +#include <linux/platform_data/txx9/ndfmc.h> /* TXX9 NDFMC Registers */ #define TXX9_NDFDTR 0x00
include/linux/platform_data/txx9/ndfmc.h renamed from arch/mips/include/asm/txx9/ndfmc.h +3 -3
@@ -5,8 +5,8 @@* * (C) Copyright TOSHIBA CORPORATION 2007 */ -#ifndef __ASM_TXX9_NDFMC_H -#define __ASM_TXX9_NDFMC_H +#ifndef __TXX9_NDFMC_H +#define __TXX9_NDFMC_H#define NDFMC_PLAT_FLAG_USE_BSPRT 0x01#define NDFMC_PLAT_FLAG_NO_RSTR 0x02
@@ -27,4 +27,4 @@ struct txx9ndfmc_platform_data {void txx9_ndfmc_init (unsigned long baseaddr,const struct txx9ndfmc_platform_data *plat_data); -#endif /* __ASM_TXX9_NDFMC_H */ +#endif /* __TXX9_NDFMC_H */
Signature · 1 line
2.14.1
PATCH 23/27 mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having SOC_TX4938 or SOC_TX4939 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -471,7 +471,8 @@ config MTD_NAND_DAVINCI config MTD_NAND_TXX9NDFMC tristate "NAND Flash support for TXx9 SoC" - depends on SOC_TX4938 || SOC_TX4939 + depends on SOC_TX4938 || SOC_TX4939 || COMPILE_TEST + depends on HAS_IOMEM help This enables the NAND flash controller on the TXx9 SoCs.
Signature · 1 line
2.14.1
PATCH 24/27 MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740
In reply to Boris BrezillonThis way we will be able to compile the jz4740_nand driver when COMPILE_TEST=y.
---
arch/mips/jz4740/board-qi_lb60.c | 3 ++-
drivers/mtd/nand/raw/jz4740_nand.c | 2 +-
.../mach-jz4740 => include/linux/platform_data/jz4740}/jz4740_nand.h | 4 ++--
3 files changed, 5 insertions(+), 4 deletions(-)
rename {arch/mips/include/asm/mach-jz4740 => include/linux/platform_data/jz4740}/jz4740_nand.h (91%)arch/mips/jz4740/board-qi_lb60.c +2 -1
@@ -29,10 +29,11 @@#include <linux/power/gpio-charger.h> #include <linux/pwm.h> +#include <linux/platform_data/jz4740/jz4740_nand.h> +#include <asm/mach-jz4740/gpio.h> #include <asm/mach-jz4740/jz4740_fb.h> #include <asm/mach-jz4740/jz4740_mmc.h> -#include <asm/mach-jz4740/jz4740_nand.h> #include <linux/regulator/fixed.h> #include <linux/regulator/machine.h>
drivers/mtd/nand/raw/jz4740_nand.c +1 -1
@@ -25,7 +25,7 @@#include <linux/gpio.h> -#include <asm/mach-jz4740/jz4740_nand.h> +#include <linux/platform_data/jz4740/jz4740_nand.h> #define JZ_REG_NAND_CTRL 0x50#define JZ_REG_NAND_ECC_CTRL 0x100
include/linux/platform_data/jz4740/jz4740_nand.h renamed from arch/mips/include/asm/mach-jz4740/jz4740_nand.h +2 -2
@@ -13,8 +13,8 @@* */ -#ifndef __ASM_MACH_JZ4740_JZ4740_NAND_H__ -#define __ASM_MACH_JZ4740_JZ4740_NAND_H__ +#ifndef __JZ4740_NAND_H__ +#define __JZ4740_NAND_H__#include <linux/mtd/rawnand.h> #include <linux/mtd/partitions.h>
Signature · 1 line
2.14.1
PATCH 25/27 mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes NAND maintainers' life easier by allowing them to compile-test this driver without having MACH_JZ4740 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +2 -1
@@ -492,7 +492,8 @@ config MTD_NAND_NUC900 config MTD_NAND_JZ4740 tristate "Support for JZ4740 SoC NAND controller" - depends on MACH_JZ4740 + depends on MACH_JZ4740 || COMPILE_TEST + depends on HAS_IOMEM help Enables support for NAND Flash on JZ4740 SoC based boards.
Signature · 1 line
2.14.1
PATCH 26/27 mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780
In reply to Boris BrezillonThis MACH_JZ4780 dependency is taken care of by JZ4780_NEMC, no need to repeat it here.
--- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/nand/raw/Kconfig +1 -1
@@ -499,7 +499,7 @@ config MTD_NAND_JZ4740 config MTD_NAND_JZ4780 tristate "Support for NAND on JZ4780 SoC" - depends on MACH_JZ4780 && JZ4780_NEMC + depends on JZ4780_NEMC help Enables support for NAND Flash connected to the NEMC on JZ4780 SoC based boards, using the BCH controller for hardware error correction.
Signature · 1 line
2.14.1
PATCH 27/27 memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonIt just makes maintainers' life easier by allowing them to compile-test this driver without having MACH_JZ4780 enabled.
We also need to add a dependency on HAS_IOMEM to make sure the driver compiles correctly.
--- drivers/memory/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/memory/Kconfig +2 -1
@@ -122,7 +122,8 @@ config FSL_IFC config JZ4780_NEMC bool "Ingenic JZ4780 SoC NEMC driver" default y - depends on MACH_JZ4780 + depends on MACH_JZ4780 || COMPILE_TEST + depends on HAS_IOMEM help This driver is for the NAND/External Memory Controller (NEMC) in the Ingenic JZ4780. This controller is used to handle external
Signature · 1 line
2.14.1
+Geert since I have a question for you
Quoted 13 lines · On Thu, 5 Jul 2018 11:44:55 +0200 Boris Brezillon…
Hello,
This is an attempt at adding "depends ||
COMPILE_TEST" to all NAND drivers that have no compile-time dependencies on arch features/headers.This will hopefully help us (NAND/MTD maintainers) in detecting build issues earlier. Unfortunately we still have a few drivers that can't easily be modified to be arch independent.
I tried to put all patches that only touch the NAND subsystem first, so that they can be applied even if other patches are being discussed.
Quoted 7 lines
Don't hesitate to point any missing dependencies when compiled with
COMPILE_TEST. I didn't have any problem when compiling, but that might be because the dependencies were already selected.I have Question for Geert. I know you worked on
HAS_DMAremoval when combined withCOMPILE_TEST, do you plan to do something similar withHAS_IOMEM?
just here :).
Quoted 67 lines
Regards,
Boris
Boris Brezillon (27):
mtd: rawnand: gpmi: Remove useless dependency onMTD_NAND
mtd: rawnand: Add 'depends onHAS_IOMEM' where missing
mtd: rawnand: atmel: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: omap2: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: s3c2410: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers
mtd: rawnand: sharpsl: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: lpc32xx: Allow selection of these drivers when
COMPILE_TEST=y
mtd: rawnand: brcmnand: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: orion: Avoid direct inclusion of asm headers
mtd: rawnand: orion: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: mxc: Avoid inclusion of asm/mach headers
mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: davinci: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: sunxi: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: qcom: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand: nuc900: Allow selection of this driver when
COMPILE_TEST=y
memory:fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
mtd: rawnand:fsl_ifc: Allow selection of this driver when
COMPILE_TEST=y
bcma: Allow selection of this driver when COMPILE_TEST=y
MIPS: txx9: Move thendfc.hheader toinclude/linux/platform_data/txx9
mtd: rawnand: txx9ndfmc: Allow selection of this driver when
COMPILE_TEST=y
MIPS: jz4740: Movejz4740_nand.hheader to
include/linux/platform_data/jz4740
mtd: rawnand: jz4740: Allow selection of this driver when
COMPILE_TEST=y
mtd: rawnand: jz4780: Drop the dependency onMACH_JZ4780
memory: jz4780-nemc: Allow selection of this driver when
COMPILE_TEST=yarch/mips/jz4740/board-qi_lb60.c | 3 +- arch/mips/txx9/generic/setup.c | 2 +- arch/mips/txx9/generic/setup_tx4938.c | 2 +- arch/mips/txx9/generic/setup_tx4939.c | 2 +- drivers/bcma/Kconfig | 3 +- drivers/memory/Kconfig | 6 ++- drivers/mtd/nand/raw/Kconfig | 61 +++++++++++++++------- drivers/mtd/nand/raw/jz4740_nand.c | 2 +- drivers/mtd/nand/raw/mxc_nand.c | 2 - drivers/mtd/nand/raw/orion_nand.c | 2 +- drivers/mtd/nand/raw/sharpsl.c | 5 +- drivers/mtd/nand/raw/txx9ndfmc.c | 2 +- .../linux/platform_data/jz4740}/jz4740_nand.h | 4 +- .../linux/platform_data}/txx9/ndfmc.h | 6 +-- 14 files changed, 61 insertions(+), 41 deletions(-) rename {arch/mips/include/asm/mach-jz4740 => include/linux/platform_data/jz4740}/jz4740_nand.h (91%) rename {arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h (91%)
Hi Boris,
Quoted 11 lines · Boris Brezillon
This is an attempt at adding "depends ||
COMPILE_TEST" to all NAND drivers that have no compile-time dependencies on arch features/headers.This will hopefully help us (NAND/MTD maintainers) in detecting build issues earlier. Unfortunately we still have a few drivers that can't easily be modified to be arch independent.
I tried to put all patches that only touch the NAND subsystem first, so that they can be applied even if other patches are being discussed.
Quoted 7 lines
Don't hesitate to point any missing dependencies when compiled with
COMPILE_TEST. I didn't have any problem when compiling, but that might be because the dependencies were already selected.I have Question for Geert. I know you worked on
HAS_DMAremoval when combined withCOMPILE_TEST, do you plan to do something similar withHAS_IOMEM?
No plans for that.
NO_IOMEM is Richard's itch, now s390 has gained PCI support. NO_DMA matters for UML and Sun-3.
Gr{oetje,eeting}s,
Geert
Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected] In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Re: [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonQuoted 5 lines · Boris Brezillon
This allows us to increase compile-test coverage without having to build a kernel for MIPS. That's particularly interesting for subsystem maintainers that want to test as many drivers as possible in a single build.
Quoted 7 lines
We also add a dependency on
HAS_IOMEMinBCMA_HOST_SOCto make sure the driver is not selected when the arch does not implement IO accessors.Signed-off-by Boris Brezillon <[email protected]>--- drivers/bcma/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
I assume this patch will go via some other tree and I can drop it.
Signature · 1 line
Kalle Valo
Re: [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y
Quoted 10 lines · On Fri, 06 Jul 2018 17:32:50 +0300 Kalle Valo <[email protected]> wrote:
Quoted 8 lines · Boris Brezillon
This allows us to increase compile-test coverage without having to build a kernel for MIPS. That's particularly interesting for subsystem maintainers that want to test as many drivers as possible in a single build.
We also add a dependency on
HAS_IOMEMinBCMA_HOST_SOCto make sure the driver is not selected when the arch does not implement IO accessors.
Quoted 9 lines
Quoted 4 lines
Signed-off-by Boris Brezillon <[email protected]>--- drivers/bcma/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)Acked-by Kalle Valo <[email protected]>I assume this patch will go via some other tree and I can drop it.
Yep. We can create an immutable tag if needed.
Richard Weinberger
maintainerAm Donnerstag, 5. Juli 2018, 12:25:42 CEST schrieb Geert Uytterhoeven:
Quoted 19 lines
Hi Boris,
Quoted 15 lines · Boris Brezillon
This is an attempt at adding "depends ||
COMPILE_TEST" to all NAND drivers that have no compile-time dependencies on arch features/headers.This will hopefully help us (NAND/MTD maintainers) in detecting build issues earlier. Unfortunately we still have a few drivers that can't easily be modified to be arch independent.
I tried to put all patches that only touch the NAND subsystem first, so that they can be applied even if other patches are being discussed.
Don't hesitate to point any missing dependencies when compiled with
COMPILE_TEST. I didn't have any problem when compiling, but that might be because the dependencies were already selected.
Quoted 7 lines
Quoted 3 lines
I have Question for Geert. I know you worked on
HAS_DMAremoval when combined withCOMPILE_TEST, do you plan to do something similar withHAS_IOMEM?No plans for that.
NO_IOMEMis Richard's itch, now s390 has gained PCI support.
Since COMPILE_TEST depends on !UML not so much anymore :-)
Quoted 1 line
NO_DMAmatters for UML and Sun-3.
Yeah.
Thanks,
//richard
Re: [PATCH 05/27] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonQuoted 17 lines · On Thu, 5 Jul 2018 11:45:00 +0200 Boris Brezillon…
It just makes NAND maintainers' life easier by allowing them to compile-test this driver without having
ARCH_S3C24XXorARCH_S3C64XXenabled.We also need to add a dependency on
HAS_IOMEMto make sure the driver compiles correctly.Signed-off-by Boris Brezillon <[email protected]>--- drivers/mtd/nand/raw/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/mtd/nand/raw/Kconfig +0
-0
drivers/mtd/nand/raw/Kconfig config MTD_NAND_AU1550 · line 123
Quoted 6 lines
drivers/mtd/nand/raw/Kconfig +2
-1@@ -119,7 +119,8 @@ config MTD_NAND_AU1550 config MTD_NAND_S3C2410 tristate "NAND Flash support for Samsung S3C SoCs" - depends on ARCH_S3C24XX || ARCH_S3C64XX + depends on ARCH_S3C24XX || ARCH_S3C64XX || COMPILE_TEST + depends on HAS_IOMEM
Looks like ia64 does not define {read,write}s{b,w,l}() IO accessors. I'll just add a 'depends on !IA64' on both s3c2410 and orion to address that.
Quoted 3 lines
drivers/mtd/nand/raw/Kconfig +0
-0help This enables the NAND flash controller on the S3C24xx and S3C64xx SoCs
Re: [PATCH 17/27] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
In reply to Boris BrezillonQuoted 17 lines · On Thu, 5 Jul 2018 11:45:12 +0200 Boris Brezillon…
It just makes NAND maintainers' life easier by allowing them to compile-test this driver without having
PLAT_SPEAR,ARCH_NOMADIK,ARCH_U8500orMACH_U300enabled.We also need to add a dependency on
HAS_IOMEMto make sure the driver compiles correctly.Signed-off-by Boris Brezillon <[email protected]>--- drivers/mtd/nand/raw/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/mtd/nand/raw/Kconfig +0
-0
drivers/mtd/nand/raw/Kconfig config MTD_NAND_JZ4780 · line 507
Quoted 8 lines
drivers/mtd/nand/raw/Kconfig +3
-2@@ -502,8 +502,9 @@ config MTD_NAND_JZ4780 config MTD_NAND_FSMC tristate "Support for NAND on ST Micros FSMC" - depends on OF - depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 + depends on OF && HAS_IOMEM + depends on PLAT_SPEAR || ARCH_NOMADIK || ARCH_U8500 || MACH_U300 || \ + COMPILE_TEST
Looks like we have a conflict on the PC definition when compiling a MIPS kernel. I'll add a patch suffixing PC with FSMC_ to avoid that. Please don't apply this patch yet.
Quoted 3 lines
drivers/mtd/nand/raw/Kconfig +0
-0help Enables support for NAND Flash chips on the ST Microelectronics Flexible Static Memory Controller (FSMC)
Hi Boris,
Boris Brezillon <[email protected]> wrote on Thu, 5 Jul 2018 11:44:55 +0200:
Quoted 17 lines
Hello,
This is an attempt at adding "depends ||
COMPILE_TEST" to all NAND drivers that have no compile-time dependencies on arch features/headers.This will hopefully help us (NAND/MTD maintainers) in detecting build issues earlier. Unfortunately we still have a few drivers that can't easily be modified to be arch independent.
I tried to put all patches that only touch the NAND subsystem first, so that they can be applied even if other patches are being discussed.
Don't hesitate to point any missing dependencies when compiled with
COMPILE_TEST. I didn't have any problem when compiling, but that might be because the dependencies were already selected.
Quoted 8 lines
I have Question for Geert. I know you worked on
HAS_DMAremoval when combined withCOMPILE_TEST, do you plan to do something similar withHAS_IOMEM?Regards,
Boris
Thanks for the cleanup.
Applied patches 1-4, 6-9, 12-16, 18 and 21 to nand/next.
Waiting a v2 for patches 5 (s3c), 10-11 (orion), 17 (fsmc), and acks for the others 19-20, 22-27.
Thanks,
Miquèl