Re: [PATCH 0/3] MTD: Change meaning of -EUCLEAN return code on reads

Mike Dunn
2012-03-16T16:31:11Z

On 03/16/2012 05:49 AM, Artem Bityutskiy wrote:
>> Consider the following situation:
>> - a NAND device with 2kB pages and 4 ecc steps per page (4 x 512 bytes)
>> - the driver has chip->ecc.strength = 4, and therefore mtd->ecc_strength = 16
>
> I would expect in this case we should have mtd->ecc_strength = 4 anyway.

But Ivan is correct; the patches would make it 16 because it is per page, not
per ecc.size.