[PATCH] Fixup in NAND bad block management + fix of misspring.(nand_base.c)
Vitaly Wool
vwool at ru.mvista.com
Mon Feb 20 07:08:11 EST 2006
Alexey,
Alexey, Korolev wrote:
> Thomas,
>
>> 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
> unconditionally.
> 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??
Best regards,
Vitaly
More information about the linux-mtd
mailing list