diff options
author | Pekon Gupta <[email protected]> | 2014-02-17 13:11:24 +0530 |
---|---|---|
committer | Brian Norris <[email protected]> | 2014-02-23 14:49:57 -0800 |
commit | aa6092f9835893290e77c3e24649def49dac1583 (patch) | |
tree | ec1e53b24298e5e237f608bc8e6fc52c1f4a45b9 /tools/perf/util/trace-event-scripting.c | |
parent | eae39cb4934d3daab3ec828c5201c955b2e56af9 (diff) |
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: <[email protected]> # 3.13.x+
Tested-by: Enric Balletbo i Serra <[email protected]>
Tested-by: Stefan Roese <[email protected]>
Signed-off-by: Pekon Gupta <[email protected]>
Signed-off-by: Brian Norris <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions