Skip to contentSkip to conversation

staging: Remove the mt29f_spinand driver

PATCH In review Boris Brezillon 3 participants 6 messages Oct 22, 2018 – Nov 6, 2018

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

PATCH 1/1 staging: Remove the mt29f_spinand driver

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Regards,

Boris

---
 drivers/staging/Kconfig                       |   2 -
 drivers/staging/Makefile                      |   1 -
 drivers/staging/mt29f_spinand/Kconfig         |  16 -
 drivers/staging/mt29f_spinand/Makefile        |   1 -
 drivers/staging/mt29f_spinand/TODO            |  13 -
 drivers/staging/mt29f_spinand/mt29f_spinand.c | 980 ------------------
 drivers/staging/mt29f_spinand/mt29f_spinand.h | 106 --
 7 files changed, 1119 deletions(-)
 delete mode 100644 drivers/staging/mt29f_spinand/Kconfig
 delete mode 100644 drivers/staging/mt29f_spinand/Makefile
 delete mode 100644 drivers/staging/mt29f_spinand/TODO
 delete mode 100644 drivers/staging/mt29f_spinand/mt29f_spinand.c
 delete mode 100644 drivers/staging/mt29f_spinand/mt29f_spinand.h
drivers/staging/Kconfig +0 -2
index 1abf76be2aa8..92e3cb82c5da 100644
@@ -78,8 +78,6 @@ source "drivers/staging/goldfish/Kconfig"
 
 source "drivers/staging/netlogic/Kconfig"
 
-source "drivers/staging/mt29f_spinand/Kconfig"
-
 source "drivers/staging/dgnc/Kconfig"
 
 source "drivers/staging/gs_fpgaboot/Kconfig"
drivers/staging/Makefile +0 -1
index ab0cbe8815b1..ec54f8f1cb5d 100644
@@ -30,7 +30,6 @@ obj-$(CONFIG_LTE_GDM724X)	+= gdm724x/
 obj-$(CONFIG_FIREWIRE_SERIAL)	+= fwserial/
 obj-$(CONFIG_GOLDFISH)		+= goldfish/
 obj-$(CONFIG_DGNC)			+= dgnc/
-obj-$(CONFIG_MTD_SPINAND_MT29F)	+= mt29f_spinand/
 obj-$(CONFIG_GS_FPGABOOT)	+= gs_fpgaboot/
 obj-$(CONFIG_UNISYSSPAR)	+= unisys/
 obj-$(CONFIG_COMMON_CLK_XLNX_CLKWZRD)	+= clocking-wizard/
drivers/staging/mt29f_spinand/Kconfig deleted +0 -16
deleted file mode 100644
index f3f9cb3b5c35..000000000000
@@ -1,16 +0,0 @@
-config MTD_SPINAND_MT29F
-	tristate "SPINAND Device Support for Micron"
-	depends on MTD_NAND && SPI
-	help
-	  This enables support for accessing Micron SPI NAND flash
-	  devices.
-	  If you have Micron SPI NAND chip say yes.
-
-	  If unsure, say no here.
-
-config MTD_SPINAND_ONDIEECC
-	bool "Use SPINAND internal ECC"
-	depends on MTD_SPINAND_MT29F
-	help
-	  Internal ECC.
-	  Enables Hardware ECC support for Micron SPI NAND.
drivers/staging/mt29f_spinand/Makefile deleted +0 -1
deleted file mode 100644
index e47af0f7fda9..000000000000
@@ -1 +0,0 @@
-obj-$(CONFIG_MTD_SPINAND_MT29F) += mt29f_spinand.o
drivers/staging/mt29f_spinand/TODO deleted +0 -13
deleted file mode 100644
index a2209b72d371..000000000000
@@ -1,13 +0,0 @@
-TODO:
-	- Tested on XLP platform, needs to be tested on other platforms.
-	- Checkpatch.pl cleanups
-	- Sparce fixes.
-	- Clean up coding style to meet kernel standard.
-
-Please send patches
-To:
-Kamlakant Patel <[email protected]>
-Cc:
-Greg Kroah-Hartman <[email protected]>
-Mona Anonuevo <[email protected]>
[email protected]
drivers/staging/mt29f_spinand/mt29f_spinand.c deleted +0 -980

980 lines not on this page · raw message

drivers/staging/mt29f_spinand/mt29f_spinand.h deleted +0 -106

106 lines not on this page · raw message

Signature · 1 line
2.17.1
maintainer
#1 lore raw

Hi Greg,

Boris Brezillon <[email protected]> wrote on Mon, 22 Oct 2018 22:10:59 +0200:

Quoted 17 lines

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Quoted 4 lines

Regards,

Boris
---

I plan to apply this patch but I would like your approval first.

As a summary, the mt29f_spinand driver is a Micron SPI NAND chip driver interfacing with the raw NAND API (which is 'wrong').

Boris has recently contributed a SPI NAND framework supporting SPI NAND chips from several vendors, including Micron, that is supposed to take over this driver.

Do you see anything that should prevent us to remove it now?

Quoted 5 lines
 drivers/staging/Kconfig                       |   2 -
 drivers/staging/Makefile                      |   1 -
 drivers/staging/mt29f_spinand/Kconfig         |  16 -
 drivers/staging/mt29f_spinand/Makefile        |   1 -
 drivers/staging/mt29f_spinand/TODO            |  13 -
Quoted 9 lines
 drivers/staging/mt29f_spinand/mt29f_spinand.c | 980 ------------------
 drivers/staging/mt29f_spinand/mt29f_spinand.h | 106 --
 7 files changed, 1119 deletions(-)
 delete mode 100644 drivers/staging/mt29f_spinand/Kconfig
 delete mode 100644 drivers/staging/mt29f_spinand/Makefile
 delete mode 100644 drivers/staging/mt29f_spinand/TODO
 delete mode 100644 drivers/staging/mt29f_spinand/mt29f_spinand.c
 delete mode 100644 drivers/staging/mt29f_spinand/mt29f_spinand.h

Thanks,
Miquèl

#2 lore raw
Quoted 29 lines · Miquel Raynal

Hi Greg,

Boris Brezillon <[email protected]> wrote on Mon, 22 Oct 2018 22:10:59 +0200:

Quoted 17 lines

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Quoted 4 lines

Regards,

Boris
---

I plan to apply this patch but I would like your approval first.

Quoted 8 lines

As a summary, the mt29f_spinand driver is a Micron SPI NAND chip driver interfacing with the raw NAND API (which is 'wrong').

Boris has recently contributed a SPI NAND framework supporting SPI NAND chips from several vendors, including Micron, that is supposed to take over this driver.

Do you see anything that should prevent us to remove it now?

Not at all, I was going to add this patch to my tree right now, as I couldn't do anything until after 4.20-rc1 was out. Any objection from me just taking it that way and getting it into 4.20-final?

thanks,

greg k-h

maintainer
#3 lore raw

Hi Greg,

Greg Kroah-Hartman <[email protected]> wrote on Mon, 5 Nov 2018 14:29:49 +0100:

Quoted 37 lines · Miquel Raynal
Quoted 36 lines

Hi Greg,

Boris Brezillon <[email protected]> wrote on Mon, 22 Oct 2018 22:10:59 +0200:

Quoted 17 lines

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Quoted 4 lines

Regards,

Boris
---

I plan to apply this patch but I would like your approval first.

As a summary, the mt29f_spinand driver is a Micron SPI NAND chip driver interfacing with the raw NAND API (which is 'wrong').

Boris has recently contributed a SPI NAND framework supporting SPI NAND chips from several vendors, including Micron, that is supposed to take over this driver.

Quoted 5 lines
Quoted 1 line

Do you see anything that should prevent us to remove it now?

Not at all, I was going to add this patch to my tree right now, as I couldn't do anything until after 4.20-rc1 was out. Any objection from me just taking it that way and getting it into 4.20-final?

I'm fine with you taking it but I have changes in the pipe that are impacted by this removal so it would be great if this could happen pretty early in the 4.20 release cycle (4.20-rc2?), so I will still be able to base nand/next on top of it.

Thanks,
Miquèl

maintainer Acked-by
#4 lore raw
Quoted 44 lines · Miquel Raynal

Hi Greg,

Greg Kroah-Hartman <[email protected]> wrote on Mon, 5 Nov 2018 14:29:49 +0100:

Quoted 39 lines · Miquel Raynal
Quoted 37 lines

Hi Greg,

Boris Brezillon <[email protected]> wrote on Mon, 22 Oct 2018 22:10:59 +0200:

Quoted 17 lines

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Quoted 4 lines

Regards,

Boris
---

I plan to apply this patch but I would like your approval first.

As a summary, the mt29f_spinand driver is a Micron SPI NAND chip driver interfacing with the raw NAND API (which is 'wrong').

Boris has recently contributed a SPI NAND framework supporting SPI NAND chips from several vendors, including Micron, that is supposed to take over this driver.

Do you see anything that should prevent us to remove it now?

Quoted 8 lines
Quoted 3 lines

Not at all, I was going to add this patch to my tree right now, as I couldn't do anything until after 4.20-rc1 was out. Any objection from me just taking it that way and getting it into 4.20-final?

I'm fine with you taking it but I have changes in the pipe that are impacted by this removal so it would be great if this could happen pretty early in the 4.20 release cycle (4.20-rc2?), so I will still be able to base nand/next on top of it.

If you need to work on top of this, please take it through your tree and feel free to add:

That way I'm not holding up any work from anyone else.

thanks,

greg k-h

maintainer
#5 lore raw

Hi Greg,

Greg Kroah-Hartman <[email protected]> wrote on Mon, 5 Nov 2018 15:34:33 +0100:

Quoted 54 lines · Miquel Raynal
Quoted 44 lines

Hi Greg,

Greg Kroah-Hartman <[email protected]> wrote on Mon, 5 Nov 2018 14:29:49 +0100:

Quoted 39 lines · Miquel Raynal
Quoted 37 lines

Hi Greg,

Boris Brezillon <[email protected]> wrote on Mon, 22 Oct 2018 22:10:59 +0200:

Quoted 17 lines

A new SPI NAND subsystem has been added in drivers/mtd/nand/spi/ and Micron's MT29F devices are now supported in drivers/mtd/nand/spi/micron.c.

Remove the old driver.

---
Hello,

If anything is missing in drivers/mtd/nand/spi/micron.c to properly support the devices supported by the mt29f_spinand driver, please let me know.
I might accept to delay removal of this driver if I have some guarantees that existing users will actually switch to the new driver at some point.

Quoted 4 lines

Regards,

Boris
---

I plan to apply this patch but I would like your approval first.

As a summary, the mt29f_spinand driver is a Micron SPI NAND chip driver interfacing with the raw NAND API (which is 'wrong').

Boris has recently contributed a SPI NAND framework supporting SPI NAND chips from several vendors, including Micron, that is supposed to take over this driver.

Do you see anything that should prevent us to remove it now?

Quoted 8 lines
Quoted 3 lines

Not at all, I was going to add this patch to my tree right now, as I couldn't do anything until after 4.20-rc1 was out. Any objection from me just taking it that way and getting it into 4.20-final?

I'm fine with you taking it but I have changes in the pipe that are impacted by this removal so it would be great if this could happen pretty early in the 4.20 release cycle (4.20-rc2?), so I will still be able to base nand/next on top of it.

Quoted 6 lines

If you need to work on top of this, please take it through your tree and feel free to add:

That way I'm not holding up any work from anyone else.

Sure, patch applied (nand/next).

Thanks,
Miquèl