[PATCH v3] mtd/docg3: fixes and cleanups

Robert Jarzmik robert.jarzmik at free.fr
Mon Dec 12 17:03:48 EST 2011


Artem Bityutskiy <dedekind1 at gmail.com> writes:

> On Fri, 2011-12-09 at 17:13 +0100, Robert Jarzmik wrote:
> What do you mean by "handle" ? Is the problem that docg3 maintains
> per-eraseblock erase-counters and you do not know how to use them?
Yes, exactly, docg3 maintains that counter for each block.

I thought that upper layers (UBI,...) could use both the erase counter and the
ECC number of flipped bits to select which block to erase next. After a quick
glance, I don't think they can do it.

> May be it is better to just embrace this function with "#ifdef 0" and add a
> comment that we can do this but do not have a good use for this?
Ah yes, I didn't think about that possibility. It's looks better, I'll submit
another patch with a comment and the #if 0.

Cheers.

-- 
Robert



More information about the linux-mtd mailing list