]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite570452243160996f66bdfd320d367eff05aab63
tree53d2f38c02513638e4b83171c4f835e8e3302c82
parent9f61cdea96e6d79e1b494257ea2e4edd076cb5ea
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