Skip to content

Introduce generic ONFI support

[email protected] linux-mtd lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 19 repliesIn review

Changes in V4 from the cover letter

-------------
* Turn ONFI support into generic.
Re-designed as per the Boris's comment. Common functions are moved to nand/onfi.c. Function to prase ONFI table is defined in nand/onfi.c
* Enable parameter page support in SPI NAND core. Re-designed as per changes in ONFI generic support. Function defined to read parameter page. Function defined to detect parameter page.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mtd: nand: move ONFI related functions to onfi.hdrivers/mtd/nand/raw/internals.h include/linux/mtd/onfi.h+9 -12 replies
2/8mtd: nand: move support functions for ONFI to nand/onfi.cdrivers/mtd/nand/Makefile drivers/mtd/nand/onfi.c drivers/mtd/nand/raw/nand_base.c +1 more+90 -622 replies
3/8mtd: nand: create ONFI table parsing instancedrivers/mtd/nand/onfi.c drivers/mtd/nand/raw/nand_onfi.c include/linux/mtd/onfi.h+36 -201 reply
4/8mtd: spinand: enabled parameter page supportdrivers/mtd/nand/spi/core.c include/linux/mtd/spinand.h+137 -05 replies
5/8mtd: spinand: micron: prepare for generalizing driverdrivers/mtd/nand/spi/micron.c+14 -141 reply
6/8mtd: spinand: micron: Turn driver implementation genericdrivers/mtd/nand/spi/core.c drivers/mtd/nand/spi/micron.c include/linux/mtd/spinand.h+49 -186 replies
7/8mtd: spinand: micron: Fix read failure in Micron M70A flashesdrivers/mtd/nand/spi/micron.c+10 -01 reply
8/8mtd: spinand: micron: Enable micron flashes with multi-diedrivers/mtd/nand/spi/micron.c+14 -01 reply

Reviews trailers per patch

1 of 8 patches has a Reviewed-by or Acked-by.

PatchMiquel Raynal
1/8
2/8
3/8
4/8
5/8
6/8
7/8R-b
8/8

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/8] Introduce generic ONFI support

From: Shivamurthy Shastri <[email protected]>

Current support to ONFI parameter page is only for raw NAND, this patch series turn ONFI support into generic. So that, other NAND devices like SPI NAND can use this.

The series has five parts.
1. Prepare for tunrning ONFI into generic
2. Turn ONFI into generic
3. Turn SPI NAND core to use parameter page
4. Redesign Micron SPI NAND driver implementation
5. Support for new Micron SPI NAND devices

Changes in V4
-------------
* Turn ONFI support into generic.
Re-designed as per the Boris's comment. Common functions are moved to nand/onfi.c. Function to prase ONFI table is defined in nand/onfi.c
* Enable parameter page support in SPI NAND core. Re-designed as per changes in ONFI generic support. Function defined to read parameter page. Function defined to detect parameter page.

Changes in V3
-------------

* Split the patches as per suggestion
* Addressed the comments
* Some fixes which I missed in last version

Shivamurthy Shastri (8):
mtd: nand: move ONFI related functions to onfi.h
mtd: nand: move support functions for ONFI to nand/onfi.c
mtd: nand: create ONFI table parsing instance
mtd: spinand: enabled parameter page support
mtd: spinand: micron: prepare for generalizing driver
mtd: spinand: micron: Turn driver implementation generic
mtd: spinand: micron: Fix read failure in Micron M70A flashes
mtd: spinand: micron: Enable micron flashes with multi-die

 drivers/mtd/nand/Makefile        |   2 +-
 drivers/mtd/nand/onfi.c          | 121 +++++++++++++++++++++++++++
 drivers/mtd/nand/raw/internals.h |   1 -
 drivers/mtd/nand/raw/nand_base.c |  18 ----
 drivers/mtd/nand/raw/nand_onfi.c |  65 +--------------
 drivers/mtd/nand/spi/core.c      | 136 ++++++++++++++++++++++++++++++-
 drivers/mtd/nand/spi/micron.c    | 107 +++++++++++++++++-------
 include/linux/mtd/onfi.h         |  11 +++
 include/linux/mtd/spinand.h      |   7 ++
 9 files changed, 356 insertions(+), 112 deletions(-)
 create mode 100644 drivers/mtd/nand/onfi.c
Signature · 1 line
2.17.1