Skip to contentSkip to conversation

mtd: nand: Select MXS_DMA for MTD_NAND_GPMI_NAND

PATCH Superseded Fabio Estevam 2 participants 6 messages Jul 24, 2012 – Jul 25, 2012

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 mtd: nand: Select MXS_DMA for MTD_NAND_GPMI_NAND

From: Fabio Estevam <[email protected]>

MTD_NAND_GPMI_NAND driver needs MXS_DMA to be selected, otherwise the following error happens for imx_v6_v7_defconfig:

drivers/built-in.o: In function `gpmi_dma_filter':
clk-fixed-factor.c:(.text+0xb124c): undefined reference to `mxs_dma_is_apbh'
make: *** [vmlinux] Error 1

---
 drivers/mtd/nand/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mtd/nand/Kconfig +1 -0
index b40e172..2062ee9 100644
@@ -463,6 +463,7 @@ config MTD_NAND_NANDSIM
 config MTD_NAND_GPMI_NAND
         bool "GPMI NAND Flash Controller driver"
         depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q)
+	select MXS_DMA
         help
 	 Enables NAND Flash support for IMX23/28/6.
 	 The GPMI controller is very powerful, with the help of BCH
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/2 mtd: nand: Include IMX6 in the list of supported SoCs

From: Fabio Estevam <[email protected]>

Include IMX6 in the list of supported SoCs.

---
 drivers/mtd/nand/Kconfig |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mtd/nand/Kconfig +1 -1
index f4e81a7..b40e172 100644
@@ -464,7 +464,7 @@ config MTD_NAND_GPMI_NAND
         bool "GPMI NAND Flash Controller driver"
         depends on MTD_NAND && (SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q)
         help
-	 Enables NAND Flash support for IMX23 or IMX28.
+	 Enables NAND Flash support for IMX23, IMX28 or IMX6.
 	 The GPMI controller is very powerful, with the help of BCH
 	 module, it can do the hardware ECC. The GPMI supports several
 	 NAND flashs at the same time. The GPMI may conflicts with other
Signature · 1 line
1.7.1
#2 lore raw
In reply to Fabio Estevam
Quoted 19 lines · Fabio Estevam

From: Fabio Estevam<[email protected]>

MTD_NAND_GPMI_NAND driver needs MXS_DMA to be selected, otherwise the following error happens for imx_v6_v7_defconfig:

drivers/built-in.o: In function `gpmi_dma_filter':
clk-fixed-factor.c:(.text+0xb124c): undefined reference to `mxs_dma_is_apbh'
make: *** [vmlinux] Error 1

---
  drivers/mtd/nand/Kconfig |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
drivers/mtd/nand/Kconfig +0 -0
index b40e172..2062ee9 100644

drivers/mtd/nand/Kconfig config MTD_NAND_NANDSIM · line 469

Quoted 7 lines
drivers/mtd/nand/Kconfig +1 -0
@@ -463,6 +463,7 @@ config MTD_NAND_NANDSIM
  config MTD_NAND_GPMI_NAND
          bool "GPMI NAND Flash Controller driver"
          depends on MTD_NAND&&  (SOC_IMX23 || SOC_IMX28 || SOC_IMX6Q)
+	select MXS_DMA
          help
  	 Enables NAND Flash support for IMX23/28/6.
  	 The GPMI controller is very powerful, with the help of BCH

thanks, but please see this thread.

http://comments.gmane.org/gmane.linux.ports.arm.kernel/146232

Huang Shijie

#4 lore raw
Quoted 8 lines · Fabio Estevam
Quoted 3 lines · Huang Shijie

thanks, but please see this thread.

http://comments.gmane.org/gmane.linux.ports.arm.kernel/146232

Ok, but what is the conclusion on this then? It has been 8 months since that thread started and the problem is still present.

If we want to fix it, we can add the "depend on MXS-DMA" for gpmi nand.

Huang Shijie

#5 lore raw
Quoted 1 line · Huang Shijie

If we want to fix it, we can add the "depend on MXS-DMA" for gpmi nand.

Ok, I will submit a fix using "depends" then.

Thanks,

Fabio Estevam