diff options
author | Jan Weitzel <j.weitzel@phytec.de> | 2011-04-19 16:15:34 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2011-05-25 01:54:39 +0100 |
commit | a80f1c1f6a15e4eeba5c146ec9c5c0e12458abc5 (patch) | |
tree | 89bb15e27e4b8768c6c5f124a6f892534d9c8825 /drivers/zorro | |
parent | 94735ec4044a6d318b83ad3c5794e931ed168d10 (diff) |
mtd: omap2: mtd split nand_scan in ident and tail
nand_scan calls nand_scan_tail and here we got a ecc.layout and calculate
oobavail for this layout. After calling nand_scan, we change the layout pointer
if OMAP_ECC_HAMMING_CODE_HW_ROMCODE is set. This results in not calcluated
oobavail. Mountig as jffs2 is not possible.
To fix that nand_scan has to split up in nand_scan_ident and nand_scan_tail
setting ecc.layout between these calls. So nand_scan_tail calculates oobvail
for the used layout. This is also done in serveral other platforms.
Signed-off-by: Jan Weitzel <j.weitzel@phytec.de>
Reviewed-by: Vimal Singh <vimal.newwork@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/zorro')
0 files changed, 0 insertions, 0 deletions