[PATCH] Fixup in NAND bad block management + fix of misspring.(nand_base.c)
vwool at ru.mvista.com
Mon Feb 20 07:08:11 EST 2006
Alexey, Korolev wrote:
>> I still do not get why you need all this magic instead of fixing up
>> this->badblockpos in the first place.
> Fixing this->badblockpos in low level driver will not help because,
> according to the code this->badblockpos updates in nand_base.c
> Moreover it's rather hard to define the conditions, because by default
> structure "this" is filled by zeroes. (We can't distinguish advisedly
> setting of badblockpos from the default value).
Well, maybe I'm missting something, but what prevents you from setting
this->badblockpos to 0 *after* call to nand_scan??
More information about the linux-mtd