diff mbox series

[U-Boot,v2,18/24] mtd: rawnand: compile-in the NAND core

Message ID 20181128230800.13292-19-miquel.raynal@bootlin.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series MTD defconfigs/Kconfigs/Makefiles heavy cleanup | expand

Commit Message

Miquel Raynal Nov. 28, 2018, 11:07 p.m. UTC
The NAND core should be selected by both SPI NAND and raw NAND
drivers.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/raw/Kconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Boris Brezillon Nov. 28, 2018, 11:57 p.m. UTC | #1
On Thu, 29 Nov 2018 00:07:54 +0100
Miquel Raynal <miquel.raynal@bootlin.com> wrote:

> The NAND core should be selected by both SPI NAND and raw NAND
> drivers.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
>  drivers/mtd/nand/raw/Kconfig | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> index a1fd476b0d..5624e47d65 100644
> --- a/drivers/mtd/nand/raw/Kconfig
> +++ b/drivers/mtd/nand/raw/Kconfig
> @@ -1,6 +1,8 @@
>  
>  menuconfig MTD_RAW_NAND
>  	bool "Raw NAND Device Support"
> +	select MTD_NAND_CORE
> +

I'm pretty sure this is not needed (yet). Let's not compile things we
don't need as some devices have storage constraints.
Miquel Raynal Dec. 4, 2018, 2:33 p.m. UTC | #2
Hi Boris,

Boris Brezillon <boris.brezillon@bootlin.com> wrote on Thu, 29 Nov 2018
00:57:19 +0100:

> On Thu, 29 Nov 2018 00:07:54 +0100
> Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> 
> > The NAND core should be selected by both SPI NAND and raw NAND
> > drivers.
> > 
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > ---
> >  drivers/mtd/nand/raw/Kconfig | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
> > index a1fd476b0d..5624e47d65 100644
> > --- a/drivers/mtd/nand/raw/Kconfig
> > +++ b/drivers/mtd/nand/raw/Kconfig
> > @@ -1,6 +1,8 @@
> >  
> >  menuconfig MTD_RAW_NAND
> >  	bool "Raw NAND Device Support"
> > +	select MTD_NAND_CORE
> > +  
> 
> I'm pretty sure this is not needed (yet). Let's not compile things we
> don't need as some devices have storage constraints.

Ok, but I will keep the compilation fixes for the time when we will want
to compile these files.


Thanks,
Miquèl
diff mbox series

Patch

diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index a1fd476b0d..5624e47d65 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -1,6 +1,8 @@ 
 
 menuconfig MTD_RAW_NAND
 	bool "Raw NAND Device Support"
+	select MTD_NAND_CORE
+
 if MTD_RAW_NAND
 
 config SYS_NAND_SELF_INIT