OSDN Git Service

mtd: fsmc: Improve the fsmc_correct_data() routine
authorArmando Visconti <armando.visconti@st.com>
Wed, 7 Mar 2012 11:30:54 +0000 (17:00 +0530)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 26 Mar 2012 23:48:06 +0000 (00:48 +0100)
commit753e0139e5569946056a8d5960111665a7f8f6f1
tree53d2f38c02513638e4b83171c4f835e8e3302c82
parenta612c2ae483ee7e4d40c31d5374edf8a8b025f2a
mtd: fsmc: Improve the fsmc_correct_data() routine

This patch improves the error correction routine for bch8
- Loop only up to number of errors detected
- Improve the error index calculation procedure

Additionally, it also renames the "correct" routine to indicate that it is bch8
specific

Signed-off-by: Armando Visconti <armando.visconti@st.com>
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>
drivers/mtd/nand/fsmc_nand.c