linux_dsm_epyc7002/drivers/mtd
Josh Wu 2fa831f9db mtd: atmel_nand: pmecc: fix failure to correct bit error in 1024-bytes sector
The PMECC use BCH algorithm to correct error. In BCH algorithm, the primitive
polynomial value is GF(2^13) for 512-bytes sector size. And it is GF(2^14) for
1024-bytes sector size.

This patch will choose correct degree of the remainders (13 or 14) for
different sector size.

Tested in AT91SAM9X5-EK with MLC nand flash.

More detail can be found in §5.4.1 of:
  AT91SAM ARM-based Embedded MPU Application Note
  <http://www.atmel.com/Images/doc11127.pdf>

Signed-off-by: Josh Wu <josh.wu@atmel.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2013-08-30 21:41:39 +01:00
..
chips mtd: jedec_probe: fix LH28F640BF definition 2013-08-05 21:04:17 +01:00
devices mtd: m25p80: Micron SPI uses Macronix-style 4-byte addressing 2013-08-30 21:41:28 +01:00
lpddr
maps mtd: maps: use dev_get_platdata() 2013-08-30 21:34:32 +01:00
nand mtd: atmel_nand: pmecc: fix failure to correct bit error in 1024-bytes sector 2013-08-30 21:41:39 +01:00
onenand mtd: onenand: use dev_get_platdata() 2013-08-30 21:34:34 +01:00
tests mtd: tests: incorporate error message for mtdtest_write() 2013-08-30 21:36:06 +01:00
ubi A couple of fixes and clean-ups, allow for assigning user-defined 2013-07-05 12:09:48 -07:00
afs.c
ar7part.c
bcm47xxpart.c
bcm63xxpart.c mtd: bcm63xxpart: use nvram for PSI size 2013-08-05 18:59:34 +01:00
cmdlinepart.c
ftl.c
inftlcore.c
inftlmount.c
Kconfig
Makefile
mtd_blkdevs.c
mtdblock_ro.c
mtdblock.c
mtdchar.c
mtdconcat.c
mtdcore.c mtd: add a new sys node to show the ecc step size 2013-08-30 21:37:56 +01:00
mtdcore.h
mtdoops.c
mtdpart.c mtd: set the ecc step size for master/slave mtd_info 2013-08-30 21:38:02 +01:00
mtdsuper.c
mtdswap.c
nftlcore.c
nftlmount.c
ofpart.c mtd: ofpart: add compatible check for child nodes 2013-08-05 21:12:32 +01:00
redboot.c
rfd_ftl.c
sm_ftl.c mtd: create_freezable_workqueue() doesn't return an ERR_PTR 2013-08-30 21:36:14 +01:00
sm_ftl.h
ssfdc.c