* [PATCH 00/27] mtd: rawnand: Improve compile-test coverage
@ 2018-07-05 9:44 Boris Brezillon
2018-07-05 9:44 ` [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND Boris Brezillon
` (29 more replies)
0 siblings, 30 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:44 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
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%)
--
2.14.1
^ permalink raw reply [flat|nested] 36+ messages in thread
* [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
@ 2018-07-05 9:44 ` Boris Brezillon
2018-07-05 9:44 ` [PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing Boris Brezillon
` (28 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:44 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
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".
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 6074a946708a..58dad80eb174 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05 9:44 ` [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND Boris Brezillon
@ 2018-07-05 9:44 ` Boris Brezillon
2018-07-05 9:44 ` [PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (27 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:44 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
When 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).
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 58dad80eb174..bfd28c1b72a3 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05 9:44 ` [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND Boris Brezillon
2018-07-05 9:44 ` [PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing Boris Brezillon
@ 2018-07-05 9:44 ` Boris Brezillon
2018-07-05 9:44 ` [PATCH 04/27] mtd: rawnand: omap2: " Boris Brezillon
` (26 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:44 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index bfd28c1b72a3..52a1aa42eacf 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 04/27] mtd: rawnand: omap2: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (2 preceding siblings ...)
2018-07-05 9:44 ` [PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:44 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 05/27] mtd: rawnand: s3c2410: " Boris Brezillon
` (25 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:44 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 52a1aa42eacf..c6764992cdfc 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 05/27] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (3 preceding siblings ...)
2018-07-05 9:44 ` [PATCH 04/27] mtd: rawnand: omap2: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-07 15:32 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers Boris Brezillon
` (24 subsequent siblings)
29 siblings, 1 reply; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index c6764992cdfc..033900c0c618 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (4 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 05/27] mtd: rawnand: s3c2410: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (23 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
We 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/sharpsl.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/mtd/nand/raw/sharpsl.c b/drivers/mtd/nand/raw/sharpsl.c
index e93df02c825e..fc171b17a39b 100644
--- a/drivers/mtd/nand/raw/sharpsl.c
+++ b/drivers/mtd/nand/raw/sharpsl.c
@@ -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;
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (5 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers " Boris Brezillon
` (22 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 033900c0c618..4ff21c8e05d4 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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"
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (6 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver " Boris Brezillon
` (21 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 4ff21c8e05d4..d396bb69d515 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (7 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers Boris Brezillon
` (20 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index d396bb69d515..b1934b415067 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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,
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (8 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (19 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
Include linux/sizes.h instead of asm/sizes.h to make code completely
arch independent.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/orion_nand.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/orion_nand.c b/drivers/mtd/nand/raw/orion_nand.c
index 7825fd3ce66b..c54d865c1ba1 100644
--- a/drivers/mtd/nand/raw/orion_nand.c
+++ b/drivers/mtd/nand/raw/orion_nand.c
@@ -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 {
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (9 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers Boris Brezillon
` (18 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index b1934b415067..a28ffc4013b6 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (10 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (17 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
asm/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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/mxc_nand.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/mxc_nand.c b/drivers/mtd/nand/raw/mxc_nand.c
index 90cfb5e730aa..14ec7d975593 100644
--- a/drivers/mtd/nand/raw/mxc_nand.c
+++ b/drivers/mtd/nand/raw/mxc_nand.c
@@ -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"
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (11 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 14/27] mtd: rawnand: davinci: " Boris Brezillon
` (16 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index a28ffc4013b6..71e7542b6522 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 14/27] mtd: rawnand: davinci: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (12 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 15/27] mtd: rawnand: sunxi: " Boris Brezillon
` (15 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 71e7542b6522..c3aa1d79781b 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 15/27] mtd: rawnand: sunxi: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (13 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 14/27] mtd: rawnand: davinci: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 16/27] mtd: rawnand: qcom: " Boris Brezillon
` (14 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index c3aa1d79781b..a5edd76e29db 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 16/27] mtd: rawnand: qcom: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (14 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 15/27] mtd: rawnand: sunxi: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 17/27] mtd: rawnand: fsmc: " Boris Brezillon
` (13 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index a5edd76e29db..b89bd94a654c 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 17/27] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (15 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 16/27] mtd: rawnand: qcom: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-08 13:06 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 18/27] mtd: rawnand: nuc900: " Boris Brezillon
` (12 subsequent siblings)
29 siblings, 1 reply; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index b89bd94a654c..245f1b56b94f 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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)
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 18/27] mtd: rawnand: nuc900: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (16 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 17/27] mtd: rawnand: fsmc: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 19/27] memory: fsl_ifc: " Boris Brezillon
` (11 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 245f1b56b94f..5a24b0fc03f1 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 19/27] memory: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (17 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 18/27] mtd: rawnand: nuc900: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 20/27] mtd: rawnand: " Boris Brezillon
` (10 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/memory/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index 8d731d6c3e54..78457ab2cbc4 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -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"
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 20/27] mtd: rawnand: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (18 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 19/27] memory: fsl_ifc: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 21/27] bcma: " Boris Brezillon
` (9 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 5a24b0fc03f1..3e74e4ef2678 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (19 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 20/27] mtd: rawnand: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-06 14:32 ` Kalle Valo
2018-07-05 9:45 ` [PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9 Boris Brezillon
` (8 subsequent siblings)
29 siblings, 1 reply; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
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_IOMEM in BCMA_HOST_SOC to make sure the
driver is not selected when the arch does not implement IO accessors.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/bcma/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/bcma/Kconfig b/drivers/bcma/Kconfig
index cb0f1aad20b7..b9558ff20830 100644
--- a/drivers/bcma/Kconfig
+++ b/drivers/bcma/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (20 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 21/27] bcma: " Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 23/27] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (7 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
This way we will be able to compile the ndfmc driver when
COMPILE_TEST=y.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
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%)
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 1791a44ee570..aa47932abd28 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -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>
diff --git a/arch/mips/txx9/generic/setup_tx4938.c b/arch/mips/txx9/generic/setup_tx4938.c
index 85d1795652da..17395d5d15ca 100644
--- a/arch/mips/txx9/generic/setup_tx4938.c
+++ b/arch/mips/txx9/generic/setup_tx4938.c
@@ -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>
diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c
index 274928987a21..360c388f4c82 100644
--- a/arch/mips/txx9/generic/setup_tx4939.c
+++ b/arch/mips/txx9/generic/setup_tx4939.c
@@ -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>
diff --git a/drivers/mtd/nand/raw/txx9ndfmc.c b/drivers/mtd/nand/raw/txx9ndfmc.c
index b567d212fe7d..04d57474ef97 100644
--- a/drivers/mtd/nand/raw/txx9ndfmc.c
+++ b/drivers/mtd/nand/raw/txx9ndfmc.c
@@ -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
diff --git a/arch/mips/include/asm/txx9/ndfmc.h b/include/linux/platform_data/txx9/ndfmc.h
similarity index 91%
rename from arch/mips/include/asm/txx9/ndfmc.h
rename to include/linux/platform_data/txx9/ndfmc.h
index fa67f3df78fc..fc172627d54e 100644
--- a/arch/mips/include/asm/txx9/ndfmc.h
+++ b/include/linux/platform_data/txx9/ndfmc.h
@@ -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 */
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 23/27] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (21 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9 Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740 Boris Brezillon
` (6 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 3e74e4ef2678..1579e62d8856 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (22 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 23/27] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (5 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
This way we will be able to compile the jz4740_nand driver when
COMPILE_TEST=y.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
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%)
diff --git a/arch/mips/jz4740/board-qi_lb60.c b/arch/mips/jz4740/board-qi_lb60.c
index 60f0767507c6..af0c8ace0141 100644
--- a/arch/mips/jz4740/board-qi_lb60.c
+++ b/arch/mips/jz4740/board-qi_lb60.c
@@ -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>
diff --git a/drivers/mtd/nand/raw/jz4740_nand.c b/drivers/mtd/nand/raw/jz4740_nand.c
index 613b00a9604b..a0254461812d 100644
--- a/drivers/mtd/nand/raw/jz4740_nand.c
+++ b/drivers/mtd/nand/raw/jz4740_nand.c
@@ -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
diff --git a/arch/mips/include/asm/mach-jz4740/jz4740_nand.h b/include/linux/platform_data/jz4740/jz4740_nand.h
similarity index 91%
rename from arch/mips/include/asm/mach-jz4740/jz4740_nand.h
rename to include/linux/platform_data/jz4740/jz4740_nand.h
index f381d465e768..bc571f6d5ced 100644
--- a/arch/mips/include/asm/mach-jz4740/jz4740_nand.h
+++ b/include/linux/platform_data/jz4740/jz4740_nand.h
@@ -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>
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (23 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740 Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780 Boris Brezillon
` (4 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 1579e62d8856..cd2c9f887270 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (24 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
` (3 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
This MACH_JZ4780 dependency is taken care of by JZ4780_NEMC, no need
to repeat it here.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/mtd/nand/raw/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index cd2c9f887270..81cb96622e9e 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -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.
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* [PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (25 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780 Boris Brezillon
@ 2018-07-05 9:45 ` Boris Brezillon
2018-07-05 9:49 ` [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (2 subsequent siblings)
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:45 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
It 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.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
drivers/memory/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/memory/Kconfig b/drivers/memory/Kconfig
index 78457ab2cbc4..a642552dfdc9 100644
--- a/drivers/memory/Kconfig
+++ b/drivers/memory/Kconfig
@@ -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
--
2.14.1
^ permalink raw reply related [flat|nested] 36+ messages in thread
* Re: [PATCH 00/27] mtd: rawnand: Improve compile-test coverage
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (26 preceding siblings ...)
2018-07-05 9:45 ` [PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
@ 2018-07-05 9:49 ` Boris Brezillon
2018-07-05 10:25 ` Geert Uytterhoeven
2018-07-08 21:55 ` Miquel Raynal
29 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-05 9:49 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless,
Geert Uytterhoeven
+Geert since I have a question for you
On Thu, 5 Jul 2018 11:44:55 +0200
Boris Brezillon <boris.brezillon@bootlin.com> wrote:
> 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?
just here :).
>
> 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%)
>
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 00/27] mtd: rawnand: Improve compile-test coverage
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (27 preceding siblings ...)
2018-07-05 9:49 ` [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
@ 2018-07-05 10:25 ` Geert Uytterhoeven
2018-07-06 14:40 ` Richard Weinberger
2018-07-08 21:55 ` Miquel Raynal
29 siblings, 1 reply; 36+ messages in thread
From: Geert Uytterhoeven @ 2018-07-05 10:25 UTC (permalink / raw)
To: Boris Brezillon
Cc: Ralf Baechle, Linux MIPS Mailing List, Rafał Miłecki,
Richard Weinberger, Miquel Raynal, MTD Maling List,
linux-wireless, Marek Vasut, Brian Norris, David Woodhouse
Hi Boris,
On Thu, Jul 5, 2018 at 12:09 PM Boris Brezillon
<boris.brezillon@bootlin.com> wrote:
> 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?
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
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:45 ` [PATCH 21/27] bcma: " Boris Brezillon
@ 2018-07-06 14:32 ` Kalle Valo
2018-07-06 14:37 ` Boris Brezillon
0 siblings, 1 reply; 36+ messages in thread
From: Kalle Valo @ 2018-07-06 14:32 UTC (permalink / raw)
To: Boris Brezillon
Cc: Ralf Baechle, linux-mips, Rafał Miłecki,
Richard Weinberger, Miquel Raynal, linux-mtd, David Woodhouse,
Brian Norris, Marek Vasut, linux-wireless
Boris Brezillon <boris.brezillon@bootlin.com> writes:
> 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_IOMEM in BCMA_HOST_SOC to make sure the
> driver is not selected when the arch does not implement IO accessors.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
> ---
> drivers/bcma/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Acked-by: Kalle Valo <kvalo@codeaurora.org>
I assume this patch will go via some other tree and I can drop it.
--
Kalle Valo
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y
2018-07-06 14:32 ` Kalle Valo
@ 2018-07-06 14:37 ` Boris Brezillon
0 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-06 14:37 UTC (permalink / raw)
To: Kalle Valo
Cc: Ralf Baechle, linux-mips, Rafał Miłecki,
Richard Weinberger, Miquel Raynal, linux-mtd, David Woodhouse,
Brian Norris, Marek Vasut, linux-wireless
On Fri, 06 Jul 2018 17:32:50 +0300
Kalle Valo <kvalo@codeaurora.org> wrote:
> Boris Brezillon <boris.brezillon@bootlin.com> writes:
>
> > 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_IOMEM in BCMA_HOST_SOC to make sure the
> > driver is not selected when the arch does not implement IO accessors.
> >
> > Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
> > ---
> > drivers/bcma/Kconfig | 3 ++-
> > 1 file changed, 2 insertions(+), 1 deletion(-)
>
> Acked-by: Kalle Valo <kvalo@codeaurora.org>
>
> I assume this patch will go via some other tree and I can drop it.
>
Yep. We can create an immutable tag if needed.
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 00/27] mtd: rawnand: Improve compile-test coverage
2018-07-05 10:25 ` Geert Uytterhoeven
@ 2018-07-06 14:40 ` Richard Weinberger
0 siblings, 0 replies; 36+ messages in thread
From: Richard Weinberger @ 2018-07-06 14:40 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Boris Brezillon, Ralf Baechle, Linux MIPS Mailing List,
Rafał Miłecki, Miquel Raynal, MTD Maling List,
linux-wireless, Marek Vasut, Brian Norris, David Woodhouse
Am Donnerstag, 5. Juli 2018, 12:25:42 CEST schrieb Geert Uytterhoeven:
> Hi Boris,
>
> On Thu, Jul 5, 2018 at 12:09 PM Boris Brezillon
> <boris.brezillon@bootlin.com> wrote:
> > 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?
>
> No plans for that.
>
> NO_IOMEM is Richard's itch, now s390 has gained PCI support.
Since COMPILE_TEST depends on !UML not so much anymore :-)
> NO_DMA matters for UML and Sun-3.
Yeah.
Thanks,
//richard
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 05/27] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:45 ` [PATCH 05/27] mtd: rawnand: s3c2410: " Boris Brezillon
@ 2018-07-07 15:32 ` Boris Brezillon
0 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-07 15:32 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: David Woodhouse, Brian Norris, Marek Vasut, linux-wireless
On Thu, 5 Jul 2018 11:45:00 +0200
Boris Brezillon <boris.brezillon@bootlin.com> wrote:
> It 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.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
> ---
> drivers/mtd/nand/raw/Kconfig | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> index c6764992cdfc..033900c0c618 100644
> --- a/drivers/mtd/nand/raw/Kconfig
> +++ b/drivers/mtd/nand/raw/Kconfig
> @@ -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.
> help
> This enables the NAND flash controller on the S3C24xx and S3C64xx
> SoCs
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 17/27] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y
2018-07-05 9:45 ` [PATCH 17/27] mtd: rawnand: fsmc: " Boris Brezillon
@ 2018-07-08 13:06 ` Boris Brezillon
0 siblings, 0 replies; 36+ messages in thread
From: Boris Brezillon @ 2018-07-08 13:06 UTC (permalink / raw)
To: Ralf Baechle, linux-mips, Rafał Miłecki,
Boris Brezillon, Richard Weinberger, Miquel Raynal, linux-mtd
Cc: linux-wireless, Marek Vasut, Brian Norris, David Woodhouse
On Thu, 5 Jul 2018 11:45:12 +0200
Boris Brezillon <boris.brezillon@bootlin.com> wrote:
> It 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.
>
> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
> ---
> drivers/mtd/nand/raw/Kconfig | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> index b89bd94a654c..245f1b56b94f 100644
> --- a/drivers/mtd/nand/raw/Kconfig
> +++ b/drivers/mtd/nand/raw/Kconfig
> @@ -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.
> help
> Enables support for NAND Flash chips on the ST Microelectronics
> Flexible Static Memory Controller (FSMC)
^ permalink raw reply [flat|nested] 36+ messages in thread
* Re: [PATCH 00/27] mtd: rawnand: Improve compile-test coverage
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
` (28 preceding siblings ...)
2018-07-05 10:25 ` Geert Uytterhoeven
@ 2018-07-08 21:55 ` Miquel Raynal
29 siblings, 0 replies; 36+ messages in thread
From: Miquel Raynal @ 2018-07-08 21:55 UTC (permalink / raw)
To: Boris Brezillon
Cc: Ralf Baechle, linux-mips, Rafał Miłecki,
Richard Weinberger, linux-mtd, David Woodhouse, Brian Norris,
Marek Vasut, linux-wireless
Hi Boris,
Boris Brezillon <boris.brezillon@bootlin.com> wrote on Thu, 5 Jul 2018
11:44:55 +0200:
> 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
>
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
^ permalink raw reply [flat|nested] 36+ messages in thread
end of thread, other threads:[~2018-07-08 21:55 UTC | newest]
Thread overview: 36+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-05 9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05 9:44 ` [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND Boris Brezillon
2018-07-05 9:44 ` [PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing Boris Brezillon
2018-07-05 9:44 ` [PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:44 ` [PATCH 04/27] mtd: rawnand: omap2: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 05/27] mtd: rawnand: s3c2410: " Boris Brezillon
2018-07-07 15:32 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers Boris Brezillon
2018-07-05 9:45 ` [PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:45 ` [PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers " Boris Brezillon
2018-07-05 9:45 ` [PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver " Boris Brezillon
2018-07-05 9:45 ` [PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers Boris Brezillon
2018-07-05 9:45 ` [PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:45 ` [PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers Boris Brezillon
2018-07-05 9:45 ` [PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:45 ` [PATCH 14/27] mtd: rawnand: davinci: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 15/27] mtd: rawnand: sunxi: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 16/27] mtd: rawnand: qcom: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 17/27] mtd: rawnand: fsmc: " Boris Brezillon
2018-07-08 13:06 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 18/27] mtd: rawnand: nuc900: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 19/27] memory: fsl_ifc: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 20/27] mtd: rawnand: " Boris Brezillon
2018-07-05 9:45 ` [PATCH 21/27] bcma: " Boris Brezillon
2018-07-06 14:32 ` Kalle Valo
2018-07-06 14:37 ` Boris Brezillon
2018-07-05 9:45 ` [PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9 Boris Brezillon
2018-07-05 9:45 ` [PATCH 23/27] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:45 ` [PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740 Boris Brezillon
2018-07-05 9:45 ` [PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:45 ` [PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780 Boris Brezillon
2018-07-05 9:45 ` [PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05 9:49 ` [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05 10:25 ` Geert Uytterhoeven
2018-07-06 14:40 ` Richard Weinberger
2018-07-08 21:55 ` Miquel Raynal
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.