[PATCH 3/3] mtd: Add mtdswap block driver

Jarkko Lavinen jarkko.lavinen at nokia.com
Tue Feb 22 11:21:43 EST 2011


On Fri, Feb 18, 2011 at 04:14:30PM +0200, ext Artem Bityutskiy wrote:
> ... what's the problem with re-trying the erase operation - it
> looks like over-design.

> Is it please possible to remove this config option?

I have a Hynix SLC OneNand spec which says an erase block with an
erase failure or a write error should not be re-written or erased
again but instead just garbage collected and marked bad.

If I switch permanently to the strict erase failure handling, bad
block marking could be too sensitive for some devices expecting
retries.

If I switch permanently to the lenient mode, mtdswap would retry
failed erases which would be against chip spec of at least the one
OneNand chip I am working with.

If I remove the config option it would then mean strict handling
only.

Jarkko



More information about the linux-mtd mailing list