From: Ralf Rösch Date: Thu, 30 Dec 2010 09:30:11 +0000 (+0100) Subject: mtd: txx9ndfmc: limit transfer bytes to 512 (ECC provides 6 bytes max) X-Git-Tag: v2.6.38-rc1~21^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24ac9a94f9e21ea71d877b0c80867d625b68bec2;p=pandora-kernel.git mtd: txx9ndfmc: limit transfer bytes to 512 (ECC provides 6 bytes max) See commit: c0cbfd0e81d879a950ba6f0df3f75ea30c5ab16e Using __nand_correct_data() helper function, this driver can read 512 byte (with 6 byte ECC) at a time. This is correct, but not more: With NAND chips providing page sizes > 512 Bytes chip->ecc.bytes are calculated > 6 in txx9ndfmc_nand_scan. According the data sheet there are (only) 6 bytes ECC available. After applying the patch a Hynix 512M*8 with 2KiB page size could be successfully formatted and used with an ubifs file system. Signed-off-by: Ralf Roesch Signed-off-by: Artem Bityutskiy Acked-by: Atsushi Nemoto Signed-off-by: David Woodhouse --- Reading git-diff-tree failed