Re: [PATCH] Fixup in NAND bad block management + fix of misspring.(nand_base.c)

Vitaly Wool
2006-02-20T12:08:22Z

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