summaryrefslogtreecommitdiff
path: root/include/linux/compiler-gcc.h
diff options
context:
space:
mode:
authorPekon Gupta <pekon@ti.com>2014-02-17 13:11:24 +0530
committerEvan Wilson <evan@oliodevices.com>2014-11-29 14:51:31 -0800
commit4df3be9685dfaa1e78d89376199d04a8cee36cf9 (patch)
tree4f7603192caf8311ab7bf07c16a9850b09f097ce /include/linux/compiler-gcc.h
parentb7a61e1ee2d5bb7a3c594517913d7f514bbea07a (diff)
downloadolio-linux-3.10-4df3be9685dfaa1e78d89376199d04a8cee36cf9.tar.xz
olio-linux-3.10-4df3be9685dfaa1e78d89376199d04a8cee36cf9.zip
mtd: nand: omap: fix ecclayout->oobfree->offset
1) In current implementation, ecclayout->oobfree->offset is calculated with respect to ecclayout->eccpos[0] which is incorrect because ECC bytes may not be stored contiguously in OOB. So, this patch calculates ecclayout->oobfree->offset with respect to last ECC byte-position 'eccpos[ecclayout->eccbytes-1]'. 2) ECC layout of some ecc-schemes expects reserved-markers at specific eccpos[] which should not be over-written by any file-system metadata. So this patch aligns oobfree->offset taking into account of such markers. CC: <stable@vger.kernel.org> # 3.13.x+ Tested-by: Enric Balletbo i Serra <eballetbo@gmail.com> Tested-by: Stefan Roese <sr@denx.de> Signed-off-by: Pekon Gupta <pekon@ti.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'include/linux/compiler-gcc.h')
0 files changed, 0 insertions, 0 deletions