[PATCH 1/2] mtd: OneNAND: Add runtime badblock check feature
dedekind1 at gmail.com
Sun Jun 13 05:26:40 EDT 2010
On Tue, 2010-06-01 at 17:17 +0900, Joonyoung Shim wrote:
> From: Kyungmin Park <kyungmin.park at samsung.com>
> This patch is to support runtime badblock checking. This supports only
> OneNAND currently. The OneNAND badblock checking when boots occurs boot
> time delay. We can reduce boot time because can detect badblock at
> Signed-off-by: Kyungmin Park <kyungmin.park at samsung.com>
Hi, this feature is interesting. But why not to use bad block table
instead of adding more complexity to the already very complex and
difficult to follow code?
Also, if you really want this, it should be rather lazy checking, where
you read OOB on demand, and then save this information to the in-ram
BBT, and when you get another ->block_isbad() for a block which was
previously checked, you do not read OOB for the second time.
CCing Thomas, if we are lucky, he'll provide good input.
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd