Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933468Ab2JaHY5 (ORCPT ); Wed, 31 Oct 2012 03:24:57 -0400 Received: from bear.ext.ti.com ([192.94.94.41]:42674 "EHLO bear.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932093Ab2JaHYx (ORCPT ); Wed, 31 Oct 2012 03:24:53 -0400 From: "Philip, Avinash" To: , , , , , , CC: , , , , , , , "Philip, Avinash" Subject: [PATCH v2 0/3] mtd: nand: OMAP: ELM error correction support for BCH ecc Date: Wed, 31 Oct 2012 12:38:24 +0530 Message-ID: <1351667307-447-1-git-send-email-avinashphilip@ti.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1826 Lines: 42 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/20121030 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. 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 | 18 + drivers/mtd/devices/Makefile | 4 +- drivers/mtd/devices/elm.c | 420 +++++++++++++++++++ drivers/mtd/nand/omap2.c | 542 +++++++++++++++++++++++-- include/linux/platform_data/elm.h | 54 +++ include/linux/platform_data/mtd-nand-omap2.h | 1 + 6 files changed, 997 insertions(+), 42 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/