]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: nand: omap: Revert to using software ECC by default
authorRoger Quadros <rogerq@ti.com>
Mon, 25 Aug 2014 23:15:32 +0000 (16:15 -0700)
committerTony Lindgren <tony@atomide.com>
Mon, 25 Aug 2014 23:15:32 +0000 (16:15 -0700)
commit9173a3ae9743c582936329bca4348c24110fa988
tree411c3fa537815dd726d4123a59f208402260483f
parentc7f7e50ad9473f509b2a4619433a13f568a7f1c3
mtd: nand: omap: Revert to using software ECC by default

For v3.12 and prior, 1-bit Hamming code ECC via software was the
default choice. Commit 2aa2af804f6d in v3.13 changed the behaviour
to use 1-bit Hamming code via Hardware using a different ECC layout
i.e. (ROM code layout) than what is used by software ECC.

This ECC layout change causes NAND filesystems created in v3.12
and prior to be unusable in v3.13 and later. So revert back to
using software ECC by default if an ECC scheme is not explicitely
specified.

This defect can be observed on the following boards during legacy boot

-omap3beagle
-omap3touchbook
-overo
-am3517crane
-devkit8000
-ldp
-3430sdp

Signed-off-by: Roger Quadros <rogerq@ti.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-flash.c
arch/arm/mach-omap2/gpmc-nand.c
drivers/mtd/nand/omap2.c
include/linux/platform_data/mtd-nand-omap2.h