Vipin Kumar b533f8d84f mtd: nand/fsmc: Flip the bit only if the error index is < 4096
ECC can correct up to 8 bits in 512 bytes data + 13 bytes ecc. This means that
the algorithm can correct a max of 8 bits in 4200 bits ie the error indices can
be from 0 to 4199. Of these 0 to 4095 are for data and 4096 to 4199 for ecc.

The driver flips the bit only if the index is <= 4096. This is a bug since the
data bits are only from 0 to 4095.

This patch modifies the check as < 4096

Signed-off-by: Vipin Kumar <vipin.kumar@st.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2012-03-27 00:58:43 +01:00
..
2012-03-27 00:53:20 +01:00
2012-03-27 00:29:11 +01:00
2012-01-09 18:25:19 +00:00
2012-01-09 18:25:19 +00:00
2012-01-09 18:26:21 +00:00
2011-09-11 15:02:13 +03:00
2012-03-27 00:23:53 +01:00
2012-03-27 00:56:46 +01:00
2011-09-11 15:02:14 +03:00
2012-03-27 00:24:14 +01:00
2012-01-09 18:26:21 +00:00
2012-01-09 18:26:08 +00:00