From: Ezequiel Garcia Date: Thu, 14 Nov 2013 21:25:39 +0000 (-0300) Subject: mtd: nand: pxa3xx: Add ECC BCH correctable errors detection X-Git-Tag: v3.14-rc1~65^2~117 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87f5336eef63f0a1d1755cfe9392e2c414605780;p=pandora-kernel.git mtd: nand: pxa3xx: Add ECC BCH correctable errors detection This commit extends the ECC correctable error detection to include ECC BCH errors. The number of BCH correctable errors can be any up to 16, and the actual value is exposed in the NDSR register. Therefore, we change some symbol names to refer to correctable or uncorrectable (instead of single-bit or double-bit as it was in the Hamming case) and while at it, cleanup the detection code slightly. Signed-off-by: Ezequiel Garcia Tested-by: Daniel Mack Signed-off-by: Brian Norris --- Reading git-diff-tree failed