On Tue, 2011-04-19 at 16:15 +0200, Jan Weitzel wrote: > 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@xxxxxxxxx> > Reviewed-by: Vimal Singh <vimal.newwork@xxxxxxxxx> Jan, thanks for the patch, pushed to l2-mtd-2.6.git. And apologies that I missed. -- Best Regards, Artem Bityutskiy (ÐÑÑÑÐ ÐÐÑÑÑÐÐÐ) -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html