[PATCH v2 07/16] mtd/docg3: add OOB layout to mtdinfo
Artem Bityutskiy
dedekind1 at gmail.com
Sun Nov 13 15:27:50 EST 2011
On Sun, 2011-11-13 at 11:55 -0800, Mike Dunn wrote:
> An objection might be that mtd should not be setting policy. It's also a fairly
> sizeable modification. The alternative would be to implement a mechanism to
> return the corrected error count to the higher layer (e.g., ubi) for each read
> operation. This would be even more work, requiring modifications to mtd and ubi.
Yeah, probably just returning the ECC correction count is cleaner
design. Probably we can add another argument to the mtd read function
and if the return code is -EUCLEAN (correctable bit-flips happened), it
would contain the highest ECC correction count encountered while reading
this region of the flash. So the SW which does not care, will not
require any changes.
I am not sure if you'll need to mtd interfaces from mtd->func(...) to
mtd_func(mtd, ...) for this or not, though.
Artem.
More information about the linux-mtd
mailing list