]> 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)
commit7a7082df2a8b895888e7520b6aa99f02f3265b94
tree411c3fa537815dd726d4123a59f208402260483f
parent7055afb06189cf53fcf1841e6e60971221ded012
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 ea0876f75e63 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