mtd: nand-mxs: calculate ecc_strength only once
Instead of calculating the ecc strength multiple times with each page
read just do it once and store the result in chip->ecc.strength.

While at it also store the correct value in chip->ecc.bytes instead of
writing a bogus value into it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent d52a342 commit deb3c57fed96fbeab0b524489fc0fca53d5513c6
@Sascha Hauer Sascha Hauer authored on 18 Jul 2019
Showing 1 changed file
View
drivers/mtd/nand/nand_mxs.c