linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries
@ 2022-07-11 22:23 Florian Fainelli
  2022-07-11 22:23 ` [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder Florian Fainelli
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Florian Fainelli @ 2022-07-11 22:23 UTC (permalink / raw)
  To: linux-mtd
  Cc: Florian Fainelli, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Brian Norris, Kamal Dasu,
	Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

Hi all,

This patch series allows for a finer control over the BRCMNAND driver
glue driver selection such that it defaults to the various platforms
enabled in the configuration file.

Florian Fainelli (2):
  mtd: rawnand: brcmnand: Move Kconfig to driver folder
  mtd: rawnand: brcmnand: Add individual glue driver selection

 drivers/mtd/nand/raw/Kconfig           | 22 +-----------
 drivers/mtd/nand/raw/brcmnand/Kconfig  | 49 ++++++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++---
 3 files changed, 54 insertions(+), 25 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig

-- 
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder
  2022-07-11 22:23 [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
@ 2022-07-11 22:23 ` Florian Fainelli
  2022-09-20  8:11   ` Miquel Raynal
  2022-07-11 22:23 ` [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection Florian Fainelli
  2022-08-04 17:55 ` [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
  2 siblings, 1 reply; 9+ messages in thread
From: Florian Fainelli @ 2022-07-11 22:23 UTC (permalink / raw)
  To: linux-mtd
  Cc: Florian Fainelli, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Brian Norris, Kamal Dasu,
	Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

In preparation for allowing each of the brcmnand stub to be built
separately, move the Kconfig entry to the driver folder.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/mtd/nand/raw/Kconfig          | 22 +---------------------
 drivers/mtd/nand/raw/brcmnand/Kconfig | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 21 deletions(-)
 create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig

diff --git a/drivers/mtd/nand/raw/Kconfig b/drivers/mtd/nand/raw/Kconfig
index 8b6d7a515445..43a151b4c8fc 100644
--- a/drivers/mtd/nand/raw/Kconfig
+++ b/drivers/mtd/nand/raw/Kconfig
@@ -200,27 +200,7 @@ config MTD_NAND_TMIO
 	  Support for NAND flash connected to a Toshiba Mobile IO
 	  Controller in some PDAs, including the Sharp SL6000x.
 
-config MTD_NAND_BRCMNAND
-	tristate "Broadcom STB NAND controller"
-	depends on ARM || ARM64 || MIPS || COMPILE_TEST
-	depends on HAS_IOMEM
-	help
-	  Enables the Broadcom NAND controller driver. The controller was
-	  originally designed for Set-Top Box but is used on various BCM7xxx,
-	  BCM3xxx, BCM63xxx, iProc/Cygnus and more.
-
-if MTD_NAND_BRCMNAND
-
-config MTD_NAND_BRCMNAND_BCMA
-	tristate "Broadcom BCMA NAND controller"
-	depends on BCMA_NFLASH
-	depends on BCMA
-	help
-	  Enables the BRCMNAND controller over BCMA on BCM47186/BCM5358 SoCs.
-	  The glue driver will take care of performing the low-level I/O
-	  operations to interface the BRCMNAND controller over the BCMA bus.
-
-endif # MTD_NAND_BRCMNAND
+source "drivers/mtd/nand/raw/brcmnand/Kconfig"
 
 config MTD_NAND_BCM47XXNFLASH
 	tristate "BCM4706 BCMA NAND controller"
diff --git a/drivers/mtd/nand/raw/brcmnand/Kconfig b/drivers/mtd/nand/raw/brcmnand/Kconfig
new file mode 100644
index 000000000000..d5a0265525ca
--- /dev/null
+++ b/drivers/mtd/nand/raw/brcmnand/Kconfig
@@ -0,0 +1,21 @@
+config MTD_NAND_BRCMNAND
+	tristate "Broadcom STB NAND controller"
+	depends on ARM || ARM64 || MIPS || COMPILE_TEST
+	depends on HAS_IOMEM
+	help
+	  Enables the Broadcom NAND controller driver. The controller was
+	  originally designed for Set-Top Box but is used on various BCM7xxx,
+	  BCM3xxx, BCM63xxx, iProc/Cygnus and more.
+
+if MTD_NAND_BRCMNAND
+
+config MTD_NAND_BRCMNAND_BCMA
+	tristate "Broadcom BCMA NAND controller"
+	depends on BCMA_NFLASH
+	depends on BCMA
+	help
+	  Enables the BRCMNAND controller over BCMA on BCM47186/BCM5358 SoCs.
+	  The glue driver will take care of performing the low-level I/O
+	  operations to interface the BRCMNAND controller over the BCMA bus.
+
+endif # MTD_NAND_BRCMNAND
-- 
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection
  2022-07-11 22:23 [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
  2022-07-11 22:23 ` [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder Florian Fainelli
@ 2022-07-11 22:23 ` Florian Fainelli
  2022-09-20  8:11   ` Miquel Raynal
  2022-08-04 17:55 ` [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
  2 siblings, 1 reply; 9+ messages in thread
From: Florian Fainelli @ 2022-07-11 22:23 UTC (permalink / raw)
  To: linux-mtd
  Cc: Florian Fainelli, Miquel Raynal, Richard Weinberger,
	Vignesh Raghavendra, Brian Norris, Kamal Dasu,
	Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

Allow each platform to define a dedicated Kconfig entry for its glue
driver such that we can decide on a per-platfomr basis whether to build
it or not. This allows for a finer grained control over the resulting
kernel image or set of modules.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
---
 drivers/mtd/nand/raw/brcmnand/Kconfig  | 28 ++++++++++++++++++++++++++
 drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++++----
 2 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/nand/raw/brcmnand/Kconfig b/drivers/mtd/nand/raw/brcmnand/Kconfig
index d5a0265525ca..4bc51bf60aca 100644
--- a/drivers/mtd/nand/raw/brcmnand/Kconfig
+++ b/drivers/mtd/nand/raw/brcmnand/Kconfig
@@ -9,6 +9,13 @@ config MTD_NAND_BRCMNAND
 
 if MTD_NAND_BRCMNAND
 
+config MTD_NAND_BRCMNAND_BCM63XX
+	tristate "Broadcom BCM63xx NAND controller glue"
+	default BCM63XX
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom BCM63xx MIPS-based DSL platforms.
+
 config MTD_NAND_BRCMNAND_BCMA
 	tristate "Broadcom BCMA NAND controller"
 	depends on BCMA_NFLASH
@@ -18,4 +25,25 @@ config MTD_NAND_BRCMNAND_BCMA
 	  The glue driver will take care of performing the low-level I/O
 	  operations to interface the BRCMNAND controller over the BCMA bus.
 
+config MTD_NAND_BRCMNAND_BCMBCA
+	tristate "Broadcom BCMBCA NAND controller glue"
+	default ARCH_BCMBCA
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom BCA platforms.
+
+config MTD_NAND_BRCMNAND_BRCMSTB
+	tristate "Broadcom STB Nand controller glue"
+	default ARCH_BRCMSTB
+	help
+	  Enables the BRCMNAND glue driver to register the NAND controller
+	  on Broadcom STB platforms.
+
+config MTD_NAND_BRCMNAND_IPROC
+	tristate "Broadcom iProc NAND controller glue"
+	default ARCH_BCM_IPROC
+	help
+	  Enables the BRCMNAND controller glue driver to register the NAND
+	  controller on Broadcom iProc platforms.
+
 endif # MTD_NAND_BRCMNAND
diff --git a/drivers/mtd/nand/raw/brcmnand/Makefile b/drivers/mtd/nand/raw/brcmnand/Makefile
index 16dc7254200e..9907e3ec4bb2 100644
--- a/drivers/mtd/nand/raw/brcmnand/Makefile
+++ b/drivers/mtd/nand/raw/brcmnand/Makefile
@@ -1,10 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
 # link order matters; don't link the more generic brcmstb_nand.o before the
 # more specific iproc_nand.o, for instance
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= iproc_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= bcm63138_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= bcm6368_nand.o
-obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= brcmstb_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_IPROC)	+= iproc_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BCMBCA)	+= bcm63138_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BCM63XX)	+= bcm6368_nand.o
+obj-$(CONFIG_MTD_NAND_BRCMNAND_BRCMSTB)	+= brcmstb_nand.o
 obj-$(CONFIG_MTD_NAND_BRCMNAND)		+= brcmnand.o
 
 obj-$(CONFIG_MTD_NAND_BRCMNAND_BCMA)	+= bcma_nand.o
-- 
2.25.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries
  2022-07-11 22:23 [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
  2022-07-11 22:23 ` [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder Florian Fainelli
  2022-07-11 22:23 ` [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection Florian Fainelli
@ 2022-08-04 17:55 ` Florian Fainelli
  2022-09-03 18:42   ` Florian Fainelli
  2022-09-19 14:40   ` Miquel Raynal
  2 siblings, 2 replies; 9+ messages in thread
From: Florian Fainelli @ 2022-08-04 17:55 UTC (permalink / raw)
  To: Florian Fainelli, linux-mtd, Miquel Raynal
  Cc: Richard Weinberger, Vignesh Raghavendra, Brian Norris,
	Kamal Dasu, Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

On 7/11/22 15:23, Florian Fainelli wrote:
> Hi all,
> 
> This patch series allows for a finer control over the BRCMNAND driver
> glue driver selection such that it defaults to the various platforms
> enabled in the configuration file.

Miquel are you able to review and apply those patches if satisfactory? Thanks!

> 
> Florian Fainelli (2):
>   mtd: rawnand: brcmnand: Move Kconfig to driver folder
>   mtd: rawnand: brcmnand: Add individual glue driver selection
> 
>  drivers/mtd/nand/raw/Kconfig           | 22 +-----------
>  drivers/mtd/nand/raw/brcmnand/Kconfig  | 49 ++++++++++++++++++++++++++
>  drivers/mtd/nand/raw/brcmnand/Makefile |  8 ++---
>  3 files changed, 54 insertions(+), 25 deletions(-)
>  create mode 100644 drivers/mtd/nand/raw/brcmnand/Kconfig
> 


-- 
Florian

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries
  2022-08-04 17:55 ` [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
@ 2022-09-03 18:42   ` Florian Fainelli
  2022-09-03 19:04     ` Miquel Raynal
  2022-09-19 14:40   ` Miquel Raynal
  1 sibling, 1 reply; 9+ messages in thread
From: Florian Fainelli @ 2022-09-03 18:42 UTC (permalink / raw)
  To: Florian Fainelli, linux-mtd, Miquel Raynal
  Cc: Richard Weinberger, Vignesh Raghavendra, Brian Norris,
	Kamal Dasu, Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang



On 8/4/2022 10:55 AM, Florian Fainelli wrote:
> On 7/11/22 15:23, Florian Fainelli wrote:
>> Hi all,
>>
>> This patch series allows for a finer control over the BRCMNAND driver
>> glue driver selection such that it defaults to the various platforms
>> enabled in the configuration file.
> 
> Miquel are you able to review and apply those patches if satisfactory? Thanks!

Ping?
-- 
Florian

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries
  2022-09-03 18:42   ` Florian Fainelli
@ 2022-09-03 19:04     ` Miquel Raynal
  0 siblings, 0 replies; 9+ messages in thread
From: Miquel Raynal @ 2022-09-03 19:04 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: linux-mtd, Richard Weinberger, Vignesh Raghavendra, Brian Norris,
	Kamal Dasu, Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

Hello Florian,

f.fainelli@gmail.com wrote on Sat, 3 Sep 2022 11:42:07 -0700:

> On 8/4/2022 10:55 AM, Florian Fainelli wrote:
> > On 7/11/22 15:23, Florian Fainelli wrote:  
> >> Hi all,
> >>
> >> This patch series allows for a finer control over the BRCMNAND driver
> >> glue driver selection such that it defaults to the various platforms
> >> enabled in the configuration file.  
> > 
> > Miquel are you able to review and apply those patches if satisfactory? Thanks!  
> 
> Ping?

Sorry for the delay, I was off for almost all July/August, I need to
sync with Richard and start catching up. I'll do my best but with
LPC/ELC-E approaching, I'm far from close to have enough spare time! At
the latest, I will settle the situation right after those conferences. 

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries
  2022-08-04 17:55 ` [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
  2022-09-03 18:42   ` Florian Fainelli
@ 2022-09-19 14:40   ` Miquel Raynal
  1 sibling, 0 replies; 9+ messages in thread
From: Miquel Raynal @ 2022-09-19 14:40 UTC (permalink / raw)
  To: Florian Fainelli
  Cc: linux-mtd, Richard Weinberger, Vignesh Raghavendra, Brian Norris,
	Kamal Dasu, Broadcom internal kernel review list, Roger Quadros,
	Krzysztof Kozlowski, Cai Huoqing, Thomas Bogendoerfer,
	Colin Ian King, open list, William Zhang

Hi Florian,

f.fainelli@gmail.com wrote on Thu, 4 Aug 2022 10:55:21 -0700:

> On 7/11/22 15:23, Florian Fainelli wrote:
> > Hi all,
> > 
> > This patch series allows for a finer control over the BRCMNAND driver
> > glue driver selection such that it defaults to the various platforms
> > enabled in the configuration file.  
> 
> Miquel are you able to review and apply those patches if satisfactory? Thanks!

Sorry for the huge delay, I'm now trying to catch up on all my work
left since end of June, the series looks ok at a first glance and
received no comments so I'll apply it soon.

Thanks,
Miquèl

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection
  2022-07-11 22:23 ` [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection Florian Fainelli
@ 2022-09-20  8:11   ` Miquel Raynal
  0 siblings, 0 replies; 9+ messages in thread
From: Miquel Raynal @ 2022-09-20  8:11 UTC (permalink / raw)
  To: Florian Fainelli, linux-mtd
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Brian Norris, Kamal Dasu, Broadcom internal kernel review list,
	Roger Quadros, Krzysztof Kozlowski, Cai Huoqing,
	Thomas Bogendoerfer, Colin Ian King, open list, William Zhang

On Mon, 2022-07-11 at 22:23:23 UTC, Florian Fainelli wrote:
> Allow each platform to define a dedicated Kconfig entry for its glue
> driver such that we can decide on a per-platfomr basis whether to build
> it or not. This allows for a finer grained control over the resulting
> kernel image or set of modules.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

* Re: [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder
  2022-07-11 22:23 ` [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder Florian Fainelli
@ 2022-09-20  8:11   ` Miquel Raynal
  0 siblings, 0 replies; 9+ messages in thread
From: Miquel Raynal @ 2022-09-20  8:11 UTC (permalink / raw)
  To: Florian Fainelli, linux-mtd
  Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Brian Norris, Kamal Dasu, Broadcom internal kernel review list,
	Roger Quadros, Krzysztof Kozlowski, Cai Huoqing,
	Thomas Bogendoerfer, Colin Ian King, open list, William Zhang

On Mon, 2022-07-11 at 22:23:22 UTC, Florian Fainelli wrote:
> In preparation for allowing each of the brcmnand stub to be built
> separately, move the Kconfig entry to the driver folder.
> 
> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

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

end of thread, other threads:[~2022-09-20  8:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-11 22:23 [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
2022-07-11 22:23 ` [PATCH 1/2] mtd: rawnand: brcmnand: Move Kconfig to driver folder Florian Fainelli
2022-09-20  8:11   ` Miquel Raynal
2022-07-11 22:23 ` [PATCH 2/2] mtd: rawnand: brcmnand: Add individual glue driver selection Florian Fainelli
2022-09-20  8:11   ` Miquel Raynal
2022-08-04 17:55 ` [PATCH 0/2] mtd: rawnand: brcmnand: Glue driver Kconfig entries Florian Fainelli
2022-09-03 18:42   ` Florian Fainelli
2022-09-03 19:04     ` Miquel Raynal
2022-09-19 14:40   ` Miquel Raynal

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).