Skip to contentSkip to conversation

mtd: nand: MTD_NAND_SH_FLCTL should depend on HAS_DMA

PATCH In review Geert Uytterhoeven 3 participants 3 messages Feb 21, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: nand: MTD_NAND_SH_FLCTL should depend on HAS_DMA

If NO_DMA=y:

    drivers/built-in.o: In function `flctl_dma_fifo0_transfer':
    sh_flctl.c:(.text+0x210398): undefined reference to `dma_map_single'
    sh_flctl.c:(.text+0x2104b0): undefined reference to `dma_unmap_single'
---
 drivers/mtd/nand/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/Kconfig +1 -0
index 90ff447bf043..e7786913280a 100644
@@ -458,6 +458,7 @@ config MTD_NAND_MXC
 
 config MTD_NAND_SH_FLCTL
 	tristate "Support for NAND on Renesas SuperH FLCTL"
+	depends on HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	  Several Renesas SuperH CPU has FLCTL. This option enables support
Signature · 1 line
1.7.9.5
Acked-by on v1 1/1
#1 lore raw

Hi Geert,

Thank you for the patch.

Quoted 7 lines · On Friday 21 February 2014 20:54:34 Geert Uytterhoeven wrote:

If NO_DMA=y:

    drivers/built-in.o: In function `flctl_dma_fifo0_transfer':
    sh_flctl.c:(.text+0x210398): undefined reference to `dma_map_single'
    sh_flctl.c:(.text+0x2104b0): undefined reference to `dma_unmap_single'
Quoted 16 lines
---
 drivers/mtd/nand/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/Kconfig +1 -0
index 90ff447bf043..e7786913280a 100644
@@ -458,6 +458,7 @@ config MTD_NAND_MXC
 
 config MTD_NAND_SH_FLCTL
 	tristate "Support for NAND on Renesas SuperH FLCTL"
+	depends on HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	  Several Renesas SuperH CPU has FLCTL. This option enables support
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw

Hi Geert,

Quoted 21 lines · Laurent Pinchart
Quoted 7 lines · On Friday 21 February 2014 20:54:34 Geert Uytterhoeven wrote:

If NO_DMA=y:

    drivers/built-in.o: In function `flctl_dma_fifo0_transfer':
    sh_flctl.c:(.text+0x210398): undefined reference to `dma_map_single'
    sh_flctl.c:(.text+0x2104b0): undefined reference to `dma_unmap_single'
Quoted 10 lines
---
 drivers/mtd/nand/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/mtd/nand/Kconfig +0 -0
index 90ff447bf043..e7786913280a 100644
@@ -458,6 +458,7 @@ config MTD_NAND_MXC
 
Quoted 6 lines

drivers/mtd/nand/Kconfig config MTD_NAND_MXC · line 464

Quoted 6 lines
drivers/mtd/nand/Kconfig +1 -0
 config MTD_NAND_SH_FLCTL
 	tristate "Support for NAND on Renesas SuperH FLCTL"
+	depends on HAS_DMA
 	depends on SUPERH || ARCH_SHMOBILE || COMPILE_TEST
 	help
 	  Several Renesas SuperH CPU has FLCTL. This option enables support

It looks like Richard beat you to this. I have a similar patch queued up in l2-mtd.git:

commit 4c8a074b3abab5a5d77c9a19f2fa5fb9d50f9908

Author: Richard Weinberger <[email protected]>
Date:   Fri Jan 31 13:39:07 2014 +0100

mtd: nand: flctl: Add dependency on HAS_IOMEM and HAS_DMA

Thanks,
Brian