From mboxrd@z Thu Jan 1 00:00:00 1970 From: Artem.Bityutskiy@nokia.com (Artem Bityutskiy) Date: Wed, 20 Apr 2011 12:00:11 +0300 Subject: [PATCH v3] ARM: omap2: mtd split nand_scan in ident and tail In-Reply-To: <1303222534-10143-1-git-send-email-j.weitzel@phytec.de> References: <1303222534-10143-1-git-send-email-j.weitzel@phytec.de> Message-ID: <1303290011.2700.12.camel@localhost> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org 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 > Reviewed-by: Vimal Singh Jan, thanks for the patch, pushed to l2-mtd-2.6.git. And apologies that I missed. -- Best Regards, Artem Bityutskiy (????? ????????)