]> git.karo-electronics.de Git - karo-tx-linux.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>
Tue, 16 Aug 2011 13:44:42 +0000 (16:44 +0300)
commite3c948491201f22bec8093e566fe236872ede491
tree7c2b214e0181eb50da4381f056f8893e1500d6b0
parent15e65e4128f4fe2bd6228eaa7894ed1796110e6d
mtd: pxa3xx_nand: Fix blank page ECC mismatch

This bug was introduced in f8155a40 ("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