Skip to content

sh_flctl hardware ECC mode cleanup

Bastian Hecht linux-mtd linux-sh 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest8 patches 5 repliesIn review
  2. v310 patches 17 repliesSuperseded
  3. v210 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v19 patches12 repliesSuperseded

Changes in v4 from the cover letter

- removed arch/arm related patches
- rebased on current l2-mtd.git
- fixed some compiler warnings
- patch 2: use "int irq" when removing irq binding in error case to fix smatch breakage
- patch 7 and 8: just directly use the void __iomem pointer instead of the unprecise void pointer to fix sparse breakage

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8mtd: sh_flctl: Add missing iounmap()drivers/mtd/nand/sh_flctl.c+2 -00 replies
2/8mtd: sh_flctl: Add support for error IRQdrivers/mtd/nand/sh_flctl.c include/linux/mtd/sh_flctl.h+40 -32 replies
3/8mtd: sh_flctl: Use different OOB layoutdrivers/mtd/nand/sh_flctl.c include/linux/mtd/sh_flctl.h+12 -100 replies
4/8mtd: sh_flctl: Fix hardware ECC behaviourdrivers/mtd/nand/sh_flctl.c+7 -230 replies
5/8mtd: sh_flctl: Simplify the hardware ecc page read/writedrivers/mtd/nand/sh_flctl.c+2 -230 replies
6/8mtd: sh_flctl: Group sector accesses into a single transferdrivers/mtd/nand/sh_flctl.c+19 -250 replies
7/8mtd: sh_flctl: Restructure the hardware ECC handlingdrivers/mtd/nand/sh_flctl.c include/linux/mtd/sh_flctl.h+88 -430 replies
8/8mtd: sh_flctl: Use user oob data in hardware ECC modedrivers/mtd/nand/sh_flctl.c+17 -82 replies

Reviews trailers per patch

2 of 8 patches have a Reviewed-by or Acked-by.

PatchLaurent PinchartBrian Norris
1/8A-b
2/8
3/8
4/8
5/8
6/8
7/8
8/8A-b

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

Read the v4 thread

Cover letter [PATCH v4 0/8] sh_flctl hardware ECC mode cleanup

changelog v4:

- removed arch/arm related patches
- rebased on current l2-mtd.git
- fixed some compiler warnings
- patch 2: use "int irq" when removing irq binding in error case to fix smatch breakage
- patch 7 and 8: just directly use the void __iomem pointer instead of the unprecise void pointer to fix sparse breakage

changelog v3:

Just a rebase on current l2-mtd.git.

changelog v2:
- extract the iounmap calls from patch "Add support for error IRQ" into a new patch.
- swapped patches "Add support for error IRQ" and "Add error IRQ resource"
- corrected an indentation mistake

This series cleans up the flctl when run in hardware ecc mode. The first 2 patches make sure we catch all errors that result from hardware transmission. The other patches handle how the ecc is layed out, correct some code to write and read it and make sure we propagate the statistics about errors/repairs to the nand base.

Bastian Hecht (8):
mtd: sh_flctl: Add missing iounmap()
mtd: sh_flctl: Add support for error IRQ
mtd: sh_flctl: Use different OOB layout
mtd: sh_flctl: Fix hardware ECC behaviour
mtd: sh_flctl: Simplify the hardware ecc page read/write
mtd: sh_flctl: Group sector accesses into a single transfer
mtd: sh_flctl: Restructure the hardware ECC handling
mtd: sh_flctl: Use user oob data in hardware ECC mode

 drivers/mtd/nand/sh_flctl.c  |  299 ++++++++++++++++++++++++------------------
 include/linux/mtd/sh_flctl.h |   23 +++-
 2 files changed, 187 insertions(+), 135 deletions(-)
Signature · 1 line
1.7.5.4