]> git.baikalelectronics.ru Git - kernel.git/commit
mtd: pxa3xx_nand: Fix blank page ECC mismatch
authorDaniel Mack <zonque@gmail.com>
Tue, 7 Jun 2011 10:01:07 +0000 (03:01 -0700)
committerArtem Bityutskiy <artem.bityutskiy@intel.com>
Sun, 11 Sep 2011 12:02:05 +0000 (15:02 +0300)
commit89a63572b5e327609000e80869989f461c85021e
tree8a70fcc046e171ce0da69e10e9182972e133afc8
parent8ca9dc5350bbb4191873642795e37cf76437ff92
mtd: pxa3xx_nand: Fix blank page ECC mismatch

This bug was introduced in 2763637e ("mtd: pxa3xx_nand: rework irq
logic") and causes the PXA3xx NAND controller fail to operate with NAND
flash that has empty pages. According to the comment in this block, the
hardware controller will report a double-bit error for empty pages,
which can and must be ignored.

This patch restores the original behaviour of the driver.

Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Lei Wen <leiwen@marvell.com>
Cc: Haojian Zhuang <haojian.zhuang@marvell.com>
Cc: David Woodhouse <David.Woodhouse@intel.com>
Cc: stable@kernel.org [2.6.38+]
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/nand/pxa3xx_nand.c