About the mxc nand driver

Juergen Beisert jbe at pengutronix.de
Tue Oct 20 09:28:54 EDT 2009


On Dienstag, 20. Oktober 2009, Sascha Hauer wrote:
> [...]
> The original Freescale driver uses this ecc layout for 8/16 bit busses:
>
> static struct nand_ecclayout nand_hw_eccoob_8 = {
> 	.eccbytes = 5,
> 	.eccpos = {6, 7, 8, 9, 10},
> 	.oobfree = {{0, 5}, {11, 5}}
> };

This one is bogus, as it describes an 8 byte OOB with more than 8 bytes... In 
the current driver this layout is used for soft ECC. Maybe this is the 
reason, why there wasn't any failure messages, because all people are using 
hardware ECC.

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | Phone: +49-8766-939 228     |
Vertretung Sued/Muenchen, Germany             | Fax:   +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686              | http://www.pengutronix.de/  |



More information about the linux-mtd mailing list