diff options
author | Teresa Remmet <t.remmet@phytec.de> | 2018-05-23 15:11:08 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-05-24 07:47:26 +0200 |
commit | ee3d0a0dbb63eb9e41de29b12fcef7615d0b7c8d (patch) | |
tree | 39eae610522b13dcd8b3582e5907d90fe63b47e3 /fs | |
parent | a74c7fac6292623107f7ee93056add9368997fb8 (diff) | |
download | barebox-ee3d0a0dbb63eb9e41de29b12fcef7615d0b7c8d.tar.gz barebox-ee3d0a0dbb63eb9e41de29b12fcef7615d0b7c8d.tar.xz |
mtd: nand: nand_omap_gpmc: Fix ecc steps
The eccsteps where set wrong for OMAP_ECC_BCH8_CODE_HW_ROMCODE.
So the ECC was only corrected for the first 512 bytes chunk of a 2k page.
Moved out the ecc step iteration out of the correcting loop to make
it more alike the generic nand functions. And made sure that
the ECC is caclulated for all chunks.
This patch is based on work of Sascha Hauer.
Fixes commit dec7b4d2bf9c ("mtd: nand_omap_gpmc: fix BCH error correction").
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions