Skip to content

mtd: nand: rework nand_ecc_ctrl interface for OOB

Brian Norris linux-mtd 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest10 patches 8 repliesIn review
  2. v310 patches 19 repliesSuperseded
  3. v22 patches 11 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches24 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mtd: nand: add 'oob_required' argument to NAND {read, write}_page interfacesdrivers/mtd/nand/atmel_nand.c drivers/mtd/nand/bcm_umi_bch.c drivers/mtd/nand/bcm_umi_nand.c +12 more+90 -724 replies
2/10mtd: nand: pass proper 'oob_required' parameterdrivers/mtd/nand/nand_base.c+8 -60 replies
3/10mtd: Blackfin NFC: utilize oob_required parameterdrivers/mtd/nand/bf5xx_nand.c+4 -21 reply
4/10mtd: cafe_nand: utilize oob_required parameterdrivers/mtd/nand/cafe_nand.c+2 -10 replies
5/10mtd: denali: utilize oob_required parameterdrivers/mtd/nand/denali.c+3 -10 replies
6/10mtd: eLBC NAND: utilize oob_required parameterdrivers/mtd/nand/fsl_elbc_nand.c+2 -10 replies
7/10mtd: IFC NAND: utilize oob_required parameterdrivers/mtd/nand/fsl_ifc_nand.c+2 -10 replies
8/10mtd: gpmi-nand: utilize oob_requested parameterdrivers/mtd/nand/gpmi-nand/gpmi-nand.c+18 -150 replies
9/10mtd: nand: utilize oob_required parameterdrivers/mtd/nand/nand_base.c+4 -20 replies
10/10mtd: pxa3xx_nand: utilize oob_required parameterdrivers/mtd/nand/pxa3xx_nand.c+4 -20 replies

Reviews trailers per patch

5 of 10 patches have a Reviewed-by or Acked-by.

PatchShmulik LadkaniJiandong ZhengScott WoodHuang Shijie
1/10R-b A-b
2/10R-b A-b
3/10
4/10
5/10
6/10R-b
7/10R-b
8/10A-b
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [PATCH v4 00/10] mtd: nand: rework nand_ecc_ctrl interface for OOB

Hello,

This is the fourth version of my patches to change the nand_chip and nand_ecc_ctrl interfaces so that the nand_ecc_ctrl functions have information about whether the higher layers actually need OOB data to be read/written from/to the NAND device.

Changes for v4, somewhat ordered by importance:

Fixup unsafe behavior for Freescale NAND drivers (thanks Scott)

Rebase on auto-increment fixes (sent separately; not accepted yet). Some of the nand_base support I provided was not sound for NAND that used auto-increment. But we always had NAND_NO_AUTOINCR set, so I killed the option and dropped support for auto-increment, making the nand_base changes sound again.

Rebase on top of Mike Dunn's bitflip threshold patch. There wasn't really any conflict; just trivial automerges.

Applied Ack's, Reviewed-by's

Please refer to previous communications for other info.

I could not compile all the affected drivers, since some required ARCH-specific builds that I am not familiar with.

Developers: if you care about your driver, please compile test and review to be sure I'm doing things safely for you.

Note to the maintainers: please do NOT accept any of the patches 3-10 without an explicit ACK from someone who knows the driver (I included Ack's for 6, 7, and 8). I think they're simple, but I am not certain. And it is totally safe to ignore one or several of those patches independently.

Thanks for reviewing!

Brian

Brian Norris (10):
mtd: nand: add 'oob_required' argument to NAND {read,write}_page
interfaces
mtd: nand: pass proper 'oob_required' parameter
mtd: Blackfin NFC: utilize oob_required parameter
mtd: cafe_nand: utilize oob_required parameter
mtd: denali: utilize oob_required parameter
mtd: eLBC NAND: utilize oob_required parameter
mtd: IFC NAND: utilize oob_required parameter
mtd: gpmi-nand: utilize oob_requested parameter
mtd: nand: utilize oob_required parameter
mtd: pxa3xx_nand: utilize oob_required parameter

 drivers/mtd/nand/atmel_nand.c          |    5 +-
 drivers/mtd/nand/bcm_umi_bch.c         |   10 +++--
 drivers/mtd/nand/bcm_umi_nand.c        |    2 +-
 drivers/mtd/nand/bf5xx_nand.c          |   10 +++--
 drivers/mtd/nand/cafe_nand.c           |   16 +++++---
 drivers/mtd/nand/denali.c              |   12 +++--
 drivers/mtd/nand/docg4.c               |   12 +++---
 drivers/mtd/nand/fsl_elbc_nand.c       |   14 +++----
 drivers/mtd/nand/fsl_ifc_nand.c        |   13 +++---
 drivers/mtd/nand/fsmc_nand.c           |    3 +-
 drivers/mtd/nand/gpmi-nand/gpmi-nand.c |   41 ++++++++++---------
 drivers/mtd/nand/nand_base.c           |   70 ++++++++++++++++++++------------
 drivers/mtd/nand/pxa3xx_nand.c         |   11 +++--
 drivers/mtd/nand/sh_flctl.c            |    4 +-
 include/linux/mtd/nand.h               |   11 +++--
 15 files changed, 134 insertions(+), 100 deletions(-)
Signature · 1 line
1.7.5.4.2.g519b1