[PATCH] mtd nand sync with kernel

Sascha Hauer s.hauer at pengutronix.de
Mon Jul 22 06:04:02 EDT 2013


The following updates the barebox NAND support to Linux-3.11-rc1.

I gave up on using separate files for the nand write support as it
turned out to be hard to keep it in sync with the kernel.

The patches were tested with the i.MX NAND driver and the MXS nand
driver. I hope there are no regressions but due to the size of the
patch this is hard to make sure, so please test.

Sascha

----------------------------------------------------------------
Sascha Hauer (8):
      mtd: nand: write BBM to OOB even with flash-based BBT
      mtd: rename MTD_OOB_* to MTD_OPS_*
      mtd: sync bbm.h with Linux Kernel
      string: introduce memchr_inv
      mtd: rename mtd_read_oob
      mtd: introduce ecc strength
      mtd: introduce mtd_read_oob and mtd_write_oob
      mtd: nand: update to v3.11-rc1

 arch/arm/boards/nhk8815/setup.c        |    2 -
 drivers/mtd/core.c                     |   21 +
 drivers/mtd/devices/docg3.c            |   26 +-
 drivers/mtd/mtdoob.c                   |    8 +-
 drivers/mtd/mtdraw.c                   |   10 +-
 drivers/mtd/nand/Kconfig               |   29 +-
 drivers/mtd/nand/Makefile              |    5 +-
 drivers/mtd/nand/atmel_nand.c          |   15 +-
 drivers/mtd/nand/nand.h                |    3 +-
 drivers/mtd/nand/nand_base.c           | 3035 +++++++++++++++++++++++++-------
 drivers/mtd/nand/nand_bbt.c            | 1053 ++++++-----
 drivers/mtd/nand/nand_bch.c            |  243 +++
 drivers/mtd/nand/nand_hwecc.c          |  103 --
 drivers/mtd/nand/nand_hwecc_syndrome.c |  225 ---
 drivers/mtd/nand/nand_ids.c            |  266 ++-
 drivers/mtd/nand/nand_imx.c            |   23 +-
 drivers/mtd/nand/nand_mxs.c            |   20 +-
 drivers/mtd/nand/nand_omap_gpmc.c      |   18 +-
 drivers/mtd/nand/nand_s3c24xx.c        |    2 +
 drivers/mtd/nand/nand_swecc.c          |   94 -
 drivers/mtd/nand/nand_write.c          |  747 --------
 drivers/mtd/nand/nomadik_nand.c        |    1 +
 include/asm-generic/errno.h            |    4 +-
 include/linux/mtd/bbm.h                |  128 +-
 include/linux/mtd/mtd-abi.h            |   19 +
 include/linux/mtd/mtd.h                |   66 +-
 include/linux/mtd/nand.h               |  645 ++++---
 include/linux/string.h                 |    2 +
 lib/string.c                           |   59 +
 29 files changed, 4110 insertions(+), 2762 deletions(-)
 create mode 100644 drivers/mtd/nand/nand_bch.c
 delete mode 100644 drivers/mtd/nand/nand_hwecc.c
 delete mode 100644 drivers/mtd/nand/nand_hwecc_syndrome.c
 delete mode 100644 drivers/mtd/nand/nand_swecc.c
 delete mode 100644 drivers/mtd/nand/nand_write.c



More information about the barebox mailing list