lkml.org 
[lkml]   [2012]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v3 0/3] mtd: nand: OMAP: ELM error correction support for BCH ecc
Date
Support to use ELM as BCH 4 & 8 bit error correction module. Also performance
enhancement by adding single shot read_page and write_page functions for the
nand flashes with page size less than 4 KB.

ELM module can be used to correct errors reported by BCH 4, 8 & 16 bit
ECC scheme. For now only 4 & 8 bit support is added.

BCH 4 & 8 bit error detection support is already available in mainline
kernel and works with software error correction.

This series is based on [1] and tested with RFC: OMAP GPMC bindings
patch series

1. linux-next/20121129

Tested on am335x-evm for BCH 4 and 8 bit error correction.

Changes since v1:
- Erased page is identified by checking byte [13/7] in read
ecc. To filter out bit flips in OOB area, check 0 bits in
the byte greater than 4.
- GPMC ecc engine configuration moves to omap2.c NAND driver.

Changes since v2:
- Added runtime detection of elm module, instead of depending
on platform data.
- Added bit flip correction in OOB ecc data if bit flip happen
OOB data.

Philip, Avinash (3):
mtd: nand: omap2: Update nerrors using ecc.strength
mtd: devices: elm: Add support for ELM error correction
mtd: nand: omap2: Support for hardware BCH error correction.

Documentation/devicetree/bindings/mtd/elm.txt | 17 +
drivers/mtd/devices/Makefile | 4 +-
drivers/mtd/devices/elm.c | 418 ++++++++++++++++++
drivers/mtd/nand/omap2.c | 563 +++++++++++++++++++++++--
include/linux/platform_data/elm.h | 55 +++
5 files changed, 1017 insertions(+), 41 deletions(-)
create mode 100644 Documentation/devicetree/bindings/mtd/elm.txt
create mode 100644 drivers/mtd/devices/elm.c
create mode 100644 include/linux/platform_data/elm.h



\
 
 \ /
  Last update: 2012-11-29 13:41    [W:0.158 / U:2.824 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site