MLK-10471: mtd: nand: use maximum ecc strength controller can support
authorHan Xu <b45815@freescale.com>
Wed, 15 Apr 2015 19:54:46 +0000 (14:54 -0500)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:31 +0000 (14:47 -0500)
commit3ddda9510967a285be573638b2fadbffc68457f7
tree4f398b347775c9d36b74a0eb0d8af0bba1600b54
parente463591ec5331d45da1382eb4f15110190242b9a
MLK-10471: mtd: nand: use maximum ecc strength controller can support

when the maximum ecc NAND oob can afford exceed the ecc strength
controller can provide, use the maximum ecc strength controller can
support instead of the minimum ecc NAND spec required.

kobs-ng will also use the same ecc strength to align with kernel to make
sure all NAND chips can boot.

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