linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: BCM: Enable NAND support for iProc SoCs
@ 2015-05-29  1:09 Ray Jui
  2015-05-29  4:00 ` Florian Fainelli
  2015-06-26 20:55 ` Florian Fainelli
  0 siblings, 2 replies; 4+ messages in thread
From: Ray Jui @ 2015-05-29  1:09 UTC (permalink / raw)
  To: Florian Fainelli, Ray Jui, Scott Branden, Russell King
  Cc: linux-kernel, bcm-kernel-feedback-list, linux-arm-kernel

Select CONFIG_MTD_NAND_BRCMNAND for all iProc SoCs

Signed-off-by: Ray Jui <rjui@broadcom.com>
---
 arch/arm/mach-bcm/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
index 8b11f44..1268e35 100644
--- a/arch/arm/mach-bcm/Kconfig
+++ b/arch/arm/mach-bcm/Kconfig
@@ -19,6 +19,7 @@ config ARCH_BCM_IPROC
 	select ARCH_REQUIRE_GPIOLIB
 	select ARM_AMBA
 	select PINCTRL
+	select MTD_NAND_BRCMNAND
 	help
 	  This enables support for systems based on Broadcom IPROC architected SoCs.
 	  The IPROC complex contains one or more ARM CPUs along with common
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: BCM: Enable NAND support for iProc SoCs
  2015-05-29  1:09 [PATCH] ARM: BCM: Enable NAND support for iProc SoCs Ray Jui
@ 2015-05-29  4:00 ` Florian Fainelli
  2015-06-26 20:55 ` Florian Fainelli
  1 sibling, 0 replies; 4+ messages in thread
From: Florian Fainelli @ 2015-05-29  4:00 UTC (permalink / raw)
  To: Ray Jui, Scott Branden, Russell King
  Cc: linux-kernel, bcm-kernel-feedback-list, linux-arm-kernel

Le 05/28/15 18:09, Ray Jui a écrit :
> Select CONFIG_MTD_NAND_BRCMNAND for all iProc SoCs
> 
> Signed-off-by: Ray Jui <rjui@broadcom.com>

Applied to soc/next, thanks!
-- 
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: BCM: Enable NAND support for iProc SoCs
  2015-05-29  1:09 [PATCH] ARM: BCM: Enable NAND support for iProc SoCs Ray Jui
  2015-05-29  4:00 ` Florian Fainelli
@ 2015-06-26 20:55 ` Florian Fainelli
  2015-06-29 16:38   ` Ray Jui
  1 sibling, 1 reply; 4+ messages in thread
From: Florian Fainelli @ 2015-06-26 20:55 UTC (permalink / raw)
  To: Ray Jui, Florian Fainelli, Scott Branden, Russell King
  Cc: linux-kernel, bcm-kernel-feedback-list, linux-arm-kernel

On 28/05/15 18:09, Ray Jui wrote:
> Select CONFIG_MTD_NAND_BRCMNAND for all iProc SoCs

In fact, this patch creates an unmet dependency problem, we also need to
select MTD and MTD_NAND otherwise we run into a linking error while
building the brcmnand driver:

  LD      init/built-in.o
drivers/built-in.o: In function `brcmnand_remove':
/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:2234:
undefined reference to `nand_release'
drivers/built-in.o: In function `brcmnand_init_cs':
/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1933:
undefined reference to `nand_scan_ident'
/home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1958:
undefined reference to `nand_scan_tail'
Makefile:931: recipe for target 'vmlinux' failed
make: *** [vmlinux] Error 1

I will take care of that and send a fix for 4.2.

> 
> Signed-off-by: Ray Jui <rjui@broadcom.com>
> ---
>  arch/arm/mach-bcm/Kconfig |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/arch/arm/mach-bcm/Kconfig b/arch/arm/mach-bcm/Kconfig
> index 8b11f44..1268e35 100644
> --- a/arch/arm/mach-bcm/Kconfig
> +++ b/arch/arm/mach-bcm/Kconfig
> @@ -19,6 +19,7 @@ config ARCH_BCM_IPROC
>  	select ARCH_REQUIRE_GPIOLIB
>  	select ARM_AMBA
>  	select PINCTRL
> +	select MTD_NAND_BRCMNAND
>  	help
>  	  This enables support for systems based on Broadcom IPROC architected SoCs.
>  	  The IPROC complex contains one or more ARM CPUs along with common
> 


-- 
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] ARM: BCM: Enable NAND support for iProc SoCs
  2015-06-26 20:55 ` Florian Fainelli
@ 2015-06-29 16:38   ` Ray Jui
  0 siblings, 0 replies; 4+ messages in thread
From: Ray Jui @ 2015-06-29 16:38 UTC (permalink / raw)
  To: Florian Fainelli, Scott Branden, Russell King
  Cc: linux-kernel, bcm-kernel-feedback-list, linux-arm-kernel

Hi Florian,

On 6/26/2015 1:55 PM, Florian Fainelli wrote:
> On 28/05/15 18:09, Ray Jui wrote:
>> Select CONFIG_MTD_NAND_BRCMNAND for all iProc SoCs
> 
> In fact, this patch creates an unmet dependency problem, we also need to
> select MTD and MTD_NAND otherwise we run into a linking error while
> building the brcmnand driver:
> 
>   LD      init/built-in.o
> drivers/built-in.o: In function `brcmnand_remove':
> /home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:2234:
> undefined reference to `nand_release'
> drivers/built-in.o: In function `brcmnand_init_cs':
> /home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1933:
> undefined reference to `nand_scan_ident'
> /home/fainelli/dev/linux/drivers/mtd/nand/brcmnand/brcmnand.c:1958:
> undefined reference to `nand_scan_tail'
> Makefile:931: recipe for target 'vmlinux' failed
> make: *** [vmlinux] Error 1
> 
> I will take care of that and send a fix for 4.2.
> 

When I tested this, I tested against multi_v7_defconfig where MTD and
MTD_NAND were enabled in the defconfig, so I did not see this problem.

Thanks a lot for helping to fix this.

Ray

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-06-29 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-29  1:09 [PATCH] ARM: BCM: Enable NAND support for iProc SoCs Ray Jui
2015-05-29  4:00 ` Florian Fainelli
2015-06-26 20:55 ` Florian Fainelli
2015-06-29 16:38   ` Ray Jui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).