Re: [PATCH v2 04/24] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 14:09:19 +0200 Arnd Bergmann wrote: > On Wed, Jul 11, 2018 at 1:32 PM, Boris Brezillon > wrote: > > On Wed, 11 Jul 2018 13:27:53 +0200 > > Arnd Bergmann wrote: > > > >> On Wed, Jul 11, 2018 at 1:16 PM, Boris Brezillon > >> wr

Re: [PATCH v2 04/24] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-11 Thread Boris Brezillon
On Wed, 11 Jul 2018 13:27:53 +0200 Arnd Bergmann wrote: > On Wed, Jul 11, 2018 at 1:16 PM, Boris Brezillon > wrote: > > On Mon, 9 Jul 2018 22:09:25 +0200 > > Boris Brezillon wrote: > > > >> It just makes NAND maintainers' life easier by allowing them to

Re: [PATCH v2 04/24] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-11 Thread Boris Brezillon
On Mon, 9 Jul 2018 22:09:25 +0200 Boris Brezillon 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 add a dependency on HAS_IOMEM to make sure the driver compile

Re: [PATCH v2 23/24] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780

2018-07-10 Thread Boris Brezillon
Hi PrasannaKumar, On Tue, 10 Jul 2018 22:16:50 +0530 PrasannaKumar Muralidharan wrote: > Hi Boris, > > On 10 July 2018 at 01:39, Boris Brezillon > wrote: > > > This MACH_JZ4780 dependency is taken care of by JZ4780_NEMC, no need > > to repeat it here. > > &

Re: [PATCH v2 11/24] mtd: rawnand: sunxi: Make sure ret is initialized in sunxi_nfc_read_byte()

2018-07-09 Thread Boris Brezillon
On Mon, 9 Jul 2018 22:35:56 +0200 Arnd Bergmann wrote: > On Mon, Jul 9, 2018 at 10:09 PM, Boris Brezillon > wrote: > > Fixes the following smatch warning: > > > > drivers/mtd/nand/raw/sunxi_nand.c:551 sunxi_nfc_read_byte() error: > > uninitialized symbol '

[PATCH v2 02/24] mtd: rawnand: atmel: Add an __iomem cast on gen_pool_dma_alloc() call

2018-07-09 Thread Boris Brezillon
gen_pool_dma_alloc() return type is void *, while internally, the memory region exposed by the sram driver has been mapped with ioremap(). Add a void * to void __iomem * cast to make sparse happy. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/atmel/nand-controller.c | 6 +++--- 1

[PATCH v2 03/24] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH v2 00/24] mtd: rawnand: Improve compile-test coverage

2018-07-09 Thread Boris Brezillon
lace those by iowrite32be() calls (or just add (__force __u32)), but I don't want to risk a regression on this driver, so I'm just leaving it for someone else to fix :P. Regards, Boris Changes in v2: - Fix a few problems reported by kbuild robots and Stephen Rothwell Boris Brezillon (24):

[PATCH v2 01/24] mtd: rawnand: atmel: Use uintptr_t casts instead of unsigned int

2018-07-09 Thread Boris Brezillon
When casting a pointer to an unsigned in, uintptr_t should be used to cope with the pointer size differences between 32-bit and 64-bit architectures. This is needed if we want to allow compilation of this driver when COMPILE_TEST=y. Reported-by: Stephen Rothwell Signed-off-by: Boris Brezillon

[PATCH v2 18/24] mtd: rawnand: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH v2 06/24] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
this architecture. Signed-off-by: Boris Brezillon --- 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 e01b3da726c0..efc5dcd5135c 100644 --- a/drivers/mtd/nand/raw/Kconfig +++ b/dr

[PATCH v2 15/24] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 Brez

[PATCH v2 05/24] mtd: rawnand: orion: Avoid direct inclusion of asm headers

2018-07-09 Thread Boris Brezillon
Include linux/sizes.h instead of asm/sizes.h to make code completely arch independent. Signed-off-by: Boris Brezillon --- 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

[PATCH v2 22/24] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH v2 21/24] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740

2018-07-09 Thread Boris Brezillon
This way we will be able to compile the jz4740_nand driver when COMPILE_TEST=y. Signed-off-by: Boris Brezillon --- arch/mips/jz4740/board-qi_lb60.c | 3 ++- drivers/mtd/nand/raw/jz4740_nand.c| 2 +- .../mach-jz4740

[PATCH v2 20/24] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kc

[PATCH v2 16/24] memory: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/m

[PATCH v2 23/24] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780

2018-07-09 Thread Boris Brezillon
This MACH_JZ4780 dependency is taken care of by JZ4780_NEMC, no need to repeat it here. Signed-off-by: Boris Brezillon --- 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

[PATCH v2 12/24] mtd: rawnand: sunxi: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH v2 19/24] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9

2018-07-09 Thread Boris Brezillon
This way we will be able to compile the ndfmc driver when COMPILE_TEST=y. Signed-off-by: Boris Brezillon --- arch/mips/txx9/generic/setup.c | 2 +- arch/mips/txx9/generic/setup_tx4938.c | 2 +- arch/mips/txx9/generic

[PATCH v2 24/24] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/memory/Kconfig | 3 ++- 1 file chang

[PATCH v2 17/24] mtd: rawnand: fsl_ifc: Add an __iomem specifier on eccstat_regs

2018-07-09 Thread Boris Brezillon
The local eccstat_regs variable in fsl_ifc_run_command() is missing an __iomem specifier, and sparce complains about that. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/fsl_ifc_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw

[PATCH v2 10/24] mtd: rawnand: sunxi: Add an U suffix to NFC_PAGE_OP definition

2018-07-09 Thread Boris Brezillon
Fixes the "warning: large integer implicitly truncated to unsigned type [-Woverflow]" warning when compiled for x86. This is needed in order to allow compiling this driver when COMPILE_TEST=y. Reported-by: Stephen Rothwell Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/su

[PATCH v2 13/24] mtd: rawnand: fscm: Avoid collision on PC def when compiling for MIPS

2018-07-09 Thread Boris Brezillon
e fsmc one with FSMC_ to avoid this problem. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/fsmc_nand.c | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/drivers/mtd/nand/raw/fsmc_nand.c b/drivers/mtd/nand/raw/fsmc_nand.c index f4

[PATCH v2 14/24] mtd: rawnand: fsmc: Use uintptr_t casts instead of unsigned ones

2018-07-09 Thread Boris Brezillon
uintptr_t should be used when casting a pointer to an unsigned int so that the code compiles without warnings even on 64-bit architectures. This is needed if we want to allow selection of this driver when COMPILE_TEST=y. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/fsmc_nand.c | 4

[PATCH v2 08/24] mtd: rawnand: davinci: Use uintptr_t casts instead of unsigned ones

2018-07-09 Thread Boris Brezillon
uintptr_t should be used when casting a pointer to an unsigned int so that the code compiles without warnings even on 64-bit architectures. This is needed if we want to allow selection of this driver when COMPILE_TEST=y. Reported-by: Stephen Rothwell Signed-off-by: Boris Brezillon --- drivers

[PATCH v2 09/24] mtd: rawnand: davinci: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH v2 04/24] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-09 Thread Boris Brezillon
e not defined for this architecture. Signed-off-by: Boris Brezillon --- 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 1488ad0a0199..e01b3da726c0 100644 --- a/drivers/mtd/nan

[PATCH v2 07/24] mtd: rawnand: davinci: Stop doing iomem pointer <-> u32 conversions

2018-07-09 Thread Boris Brezillon
inappropriate u32 <-> void * conversions (pointers are 64bits large on x86_64). Reported-by: Stephen Rothwell Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/davinci_nand.c | 23 ++- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/drivers/mtd/na

[PATCH v2 11/24] mtd: rawnand: sunxi: Make sure ret is initialized in sunxi_nfc_read_byte()

2018-07-09 Thread Boris Brezillon
Fixes the following smatch warning: drivers/mtd/nand/raw/sunxi_nand.c:551 sunxi_nfc_read_byte() error: uninitialized symbol 'ret'. Signed-off-by: Boris Brezillon --- drivers/mtd/nand/raw/sunxi_nand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mt

Re: [PATCH 17/27] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y

2018-07-08 Thread Boris Brezillon
On Thu, 5 Jul 2018 11:45:12 +0200 Boris Brezillon 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_IO

Re: [PATCH 05/27] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-07 Thread Boris Brezillon
On Thu, 5 Jul 2018 11:45:00 +0200 Boris Brezillon 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 t

Re: [PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y

2018-07-06 Thread Boris Brezillon
On Fri, 06 Jul 2018 17:32:50 +0300 Kalle Valo wrote: > Boris Brezillon 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

Re: [PATCH 00/27] mtd: rawnand: Improve compile-test coverage

2018-07-05 Thread Boris Brezillon
+Geert since I have a question for you On Thu, 5 Jul 2018 11:44:55 +0200 Boris Brezillon 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. > > Th

[PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers

2018-07-05 Thread Boris Brezillon
Include linux/sizes.h instead of asm/sizes.h to make code completely arch independent. Signed-off-by: Boris Brezillon --- 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

[PATCH 04/27] mtd: rawnand: omap2: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/mxc_nand.c | 2 -- 1 file changed, 2 deletions(-) diff --git a

[PATCH 20/27] mtd: rawnand: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 19/27] memory: fsl_ifc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/m

[PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand

[PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 21/27] bcma: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
er is not selected when the arch does not implement IO accessors. Signed-off-by: Boris Brezillon --- 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/Kc

[PATCH 18/27] mtd: rawnand: nuc900: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 +

[PATCH 16/27] mtd: rawnand: qcom: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740

2018-07-05 Thread Boris Brezillon
This way we will be able to compile the jz4740_nand driver when COMPILE_TEST=y. Signed-off-by: Boris Brezillon --- arch/mips/jz4740/board-qi_lb60.c | 3 ++- drivers/mtd/nand/raw/jz4740_nand.c| 2 +- .../mach-jz4740

[PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780

2018-07-05 Thread Boris Brezillon
This MACH_JZ4780 dependency is taken care of by JZ4780_NEMC, no need to repeat it here. Signed-off-by: Boris Brezillon --- 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

[PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 17/27] mtd: rawnand: fsmc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 Brez

[PATCH 15/27] mtd: rawnand: sunxi: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 14/27] mtd: rawnand: davinci: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 3 ++- 1

[PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/memory/Kconfig | 3 ++- 1 file chang

[PATCH 23/27] mtd: rawnand: txx9ndfmc: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kc

[PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/sharpsl.c | 5 + 1 file

[PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9

2018-07-05 Thread Boris Brezillon
This way we will be able to compile the ndfmc driver when COMPILE_TEST=y. Signed-off-by: Boris Brezillon --- arch/mips/txx9/generic/setup.c | 2 +- arch/mips/txx9/generic/setup_tx4938.c | 2 +- arch/mips/txx9/generic

[PATCH 05/27] mtd: rawnand: s3c2410: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nan

[PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfi

[PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver when COMPILE_TEST=y

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfi

[PATCH 00/27] mtd: rawnand: Improve compile-test coverage

2018-07-05 Thread Boris Brezillon
ny 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: rawn

[PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND

2018-07-05 Thread Boris Brezillon
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 --- drivers/mtd/nand/raw/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/nand/r

Re: [PATCH] bcm47xx: fix build regression

2017-05-31 Thread Boris Brezillon
_nvram_init_from_mem': > include/linux/bcm47xx_nvram.h:27:10: error: 'ENOTSUPP' undeclared (first use > in this function) > > Clearly we want to include linux/errno.h here. > > Signed-off-by: Arnd Bergmann Acked-by: Boris Brezillon > --- > include/linux/bcm47x

Re: [PATCH V2] mtd: bcm47xxsflash: use platform_(set|get)_drvdata

2017-02-06 Thread Boris Brezillon
ds. > > Signed-off-by: Rafał Miłecki Acked-by: Boris Brezillon > --- > Kalle: This is mtd focused patch, so I guess it should go through mtd tree. Do >you find bcma change important enough to care to Ack it? :) > --- > drivers/mtd/devices/bcm47xxsflash

Re: [PATCH v5] mtd: nand: bcm47xx: use the mtd instance embedded in struct nand_chip

2015-12-18 Thread Boris Brezillon
On Fri, 18 Dec 2015 11:38:18 -0800 Brian Norris wrote: > From: Boris BREZILLON > > struct nand_chip now embeds an mtd device. Make use of this mtd instance. > > Signed-off-by: Boris Brezillon > Signed-off-by: Brian Norris Looks good to me, not we can have both a SoB an

Re: [PATCH] mtd: nand: bcm47xxnflash: fix bcm47xxnflash_remove()

2015-12-14 Thread Boris Brezillon
Hi Brian, On Mon, 14 Dec 2015 09:30:11 -0800 Brian Norris wrote: > On Mon, Dec 14, 2015 at 06:14:10PM +0100, Boris Brezillon wrote: > > bcm47xxnflash_remove() is supposed to unregister the NAND device previously > > registered in bcm47xxnflash_probe(), but the current impl

Re: [PATCH] mtd: bcm47xxnflash: really unregister NAND on device removal

2015-12-14 Thread Boris Brezillon
nfo up a bit, > since struct bcma_sflash should be using it. > > Caught while inspecting other changes being made to this driver. Compile > tested only. > > Signed-off-by: Brian Norris > Cc: "Rafał Miłecki" > Cc: linux-wireless@vger.kernel.org Acked-by: Boris Brezi

[PATCH] mtd: nand: bcm47xxnflash: fix bcm47xxnflash_remove()

2015-12-14 Thread Boris Brezillon
struct bcma_nflash, and release the real NAND device in bcm47xxnflash_remove(). Signed-off-by: Boris Brezillon Fixes: a5401370c520 ("mtd: prepare place for BCMA NAND flash driver(s)") Cc: Rafał Miłecki --- drivers/mtd/nand/bcm47xxnflash/main.c | 7 --- in