linux/drivers/mtd/nand
Roger Quadros 40ddbf5069 mtd: nand: omap: Fix 1-bit Hamming code scheme, omap_calculate_ecc()
commit 65b97cf6b8 introduced in v3.7 caused a regression
by using a reversed CS_MASK thus causing omap_calculate_ecc to
always fail. As the NAND base driver never checks for .calculate()'s
return value, the zeroed ECC values are used as is without showing
any error to the user. However, this won't work and the NAND device
won't be guarded by any error code.

Fix the issue by using the correct mask.

Code was tested on omap3beagle using the following procedure
- flash the primary bootloader (MLO) from the kernel to the first
NAND partition using nandwrite.
- boot the board from NAND. This utilizes OMAP ROM loader that
relies on 1-bit Hamming code ECC.

Fixes: 65b97cf6b8 (mtd: nand: omap2: handle nand on gpmc)

Cc: <stable@vger.kernel.org>	[3.7+]
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2014-08-25 16:15:33 -07:00
..
bcm47xxnflash
gpmi-nand mtd: gpmi: make blockmark swapping optional 2014-07-27 22:06:31 -07:00
ams-delta.c
atmel_nand_ecc.h
atmel_nand_nfc.h mtd: atmel_nand: add NFC status error check 2014-07-21 20:02:01 -07:00
atmel_nand.c mtd: atmel_nand: NFC: support multiple interrupt handling 2014-07-21 20:05:36 -07:00
au1550nd.c MIPS: Alchemy: remove au_read/write/sync 2014-07-30 13:56:34 +02:00
bf5xx_nand.c
cafe_nand.c
cmx270_nand.c
cs553x_nand.c
davinci_nand.c
denali_dt.c
denali_pci.c
denali.c
denali.h
diskonchip.c
docg4.c
fsl_elbc_nand.c
fsl_ifc_nand.c
fsl_upm.c
fsmc_nand.c
gpio.c
jz4740_nand.c
Kconfig
lpc32xx_mlc.c
lpc32xx_slc.c
Makefile mtd: nand: add ONFI timing mode to nand_timings converter 2014-07-21 19:39:55 -07:00
mpc5121_nfc.c
mxc_nand.c
nand_base.c
nand_bbt.c
nand_bch.c
nand_ecc.c
nand_ids.c
nand_timings.c mtd: nand: add ONFI timing mode to nand_timings converter 2014-07-21 19:39:55 -07:00
nandsim.c
ndfc.c
nuc900_nand.c
omap2.c mtd: nand: omap: Fix 1-bit Hamming code scheme, omap_calculate_ecc() 2014-08-25 16:15:33 -07:00
orion_nand.c
pasemi_nand.c
plat_nand.c
pxa3xx_nand.c
r852.c
r852.h
s3c2410.c
sh_flctl.c
sharpsl.c
sm_common.c
sm_common.h
socrates_nand.c
tmio_nand.c
txx9ndfmc.c
xway_nand.c