[RFC PATCH] mtd: mxc_nand: fix OOB corruption when page size > 2k

Artem Bityutskiy dedekind1 at gmail.com
Wed Mar 9 09:16:11 EST 2011


On Wed, 2011-03-09 at 16:12 +0200, Baruch Siach wrote:
>  	if (mtd->writesize == 2048)
>  		this->ecc.layout = oob_largepage;
> +	if (nfc_is_v21() && mtd->writesize == 4096)
> +		this->ecc.layout = &nandv2_hw_eccoob_4k;

Nitpick, but this could be "else if".

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




More information about the linux-mtd mailing list