mtd: rawnand: micron: allow forced on-die ECC
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 18 Jul 2018 08:42:18 +0000 (10:42 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Jul 2018 21:15:03 +0000 (23:15 +0200)
commitcb2bf403a462082a253fe0a94cfec020285ffbd8
treecf9419059b0b9df4de2fd9ecd600460910480d76
parent0d6030ac041f6835974deb88a1a9c299b4adc3ad
mtd: rawnand: micron: allow forced on-die ECC

Some Micron NAND chips have on-die ECC forceably enabled. Allow such
chips to be used as long as the controller has set chip->ecc.mode to
NAND_ECC_ON_DIE.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Reviewed-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/nand_micron.c