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

Artem Bityutskiy dedekind1 at gmail.com
Wed Jan 5 03:37:51 EST 2011


On Thu, 2010-12-30 at 10:30 +0100, Ralf Rösch 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>

Pushed to l2-mtd-2.6.git, thanks!

-- 
Best Regards,
Artem Bityutskiy (Битюцкий Артём)




More information about the linux-mtd mailing list