[PATCH] txx9ndfmc: limit transfer bytes to 512 (ECC provides 6 bytes max)

Atsushi Nemoto anemo at mba.ocn.ne.jp
Tue Jan 4 00:13:27 EST 2011


On Thu, 30 Dec 2010 10:30:11 +0100, Ralf Rösch <ralf.roesch at rw-gmbh.de> wrote:
> 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 2k page size could be
> successfully formatted and used with an ubifs file system.
> 
> Signed-off-by: Ralf Roesch <ralf.roesch at rw-gmbh.de>

Thank you for the fix.  It is good news that this controller can work
with large page NAND.

Acked-by: Atsushi Nemoto <anemo at mba.ocn.ne.jp>



More information about the linux-mtd mailing list