]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: mxc_nand: move ecc strengh setup before nand_scan_tail
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 25 May 2012 14:22:42 +0000 (16:22 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 1 Jun 2012 19:23:29 +0000 (20:23 +0100)
commit0181986841bf21bb220b38b71a72ea573f061aaf
tree37af143a476ffc67d08a6a15f785483fa7d0f19f
parente3dc1b81e14474cf4d12489f777a77d9969db26e
mtd: mxc_nand: move ecc strengh setup before nand_scan_tail

Since commit ab0459064558c259f587c96af00c36d74945ea0a, the mxc_nand driver
fails with:

Driver must set ecc.strength when using hardware ECC

This is because nand_scan_tail checks for correct ecc strength
settings, so we must set them up before nand_scan_tail.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Cc: stable@vger.kernel.org [3.4+]
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/nand/mxc_nand.c