mtd: nand: omap: fix bch8_hw_romcode ecc layout
The ecc layout we provide to the nand core is broken since
00f119a293. Before this commit ecc bytes/size were per page
and now they are per subpage. The offset for the first ecc
byte was calculated as oob_end - num_ecc_bytes which must
now become oob_end - num_ecc_bytes * ecc_steps.

Fixes: 00f119a293 ("mtd: omap gpmc: fix ecc bytes/size")

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 16a4b3a commit 7d5afe91308d11ee701362bb6792f31509d3c966
@Sascha Hauer Sascha Hauer authored on 13 Dec 2018
Showing 1 changed file
View
drivers/mtd/nand/nand_omap_gpmc.c