summaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorPekon Gupta2014-02-17 08:41:24 +0100
committerBrian Norris2014-02-23 23:49:57 +0100
commitaa6092f9835893290e77c3e24649def49dac1583 (patch)
treeec1e53b24298e5e237f608bc8e6fc52c1f4a45b9 /include/linux/input.h
parentmtd: nand: omap: fix ecclayout to be in sync with u-boot NAND driver (diff)
downloadkernel-qcow2-linux-aa6092f9835893290e77c3e24649def49dac1583.tar.gz
kernel-qcow2-linux-aa6092f9835893290e77c3e24649def49dac1583.tar.xz
kernel-qcow2-linux-aa6092f9835893290e77c3e24649def49dac1583.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/input.h')
0 files changed, 0 insertions, 0 deletions