]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
MLK-10245: mtd: nand: may use minimum required ecc for 744 oobsize NAND
authorHan Xu <b45815@freescale.com>
Wed, 11 Feb 2015 22:06:21 +0000 (16:06 -0600)
committerHan Xu <b45815@freescale.com>
Thu, 12 Feb 2015 17:18:28 +0000 (11:18 -0600)
commit925e7db9d925fb64cb971b1de12353103b7374e1
treee69ac52ed7dd22e22850d8a93ad86d54120f5dec
parent2362ae7927e8b9cb38bd932c5c76a172a22802d4
MLK-10245: mtd: nand: may use minimum required ecc for 744 oobsize NAND

By default, NAND driver will choose the highest ecc strength that oob
could contain, in this case, for some 8K+744 NAND flash, the ecc
strength will be up to 52bit, which is beyond the i.MX6QDL BCH
capability (40bit).

This code change allows the NAND driver try to use minimum required ecc
strength if it failed to use the highest ecc, even without explicitly
claiming "fsl,use-minimum-ecc" in dts.

Signed-off-by: Han Xu <b45815@freescale.com>
(cherry picked from commit aba987c75fcf264d60f4f819dda53fcb828f7c73)
drivers/mtd/nand/gpmi-nand/gpmi-nand.c