Re: [PATCH 2/2] mtd: cfi: fix writebufsize initialization

Artem Bityutskiy
2011-02-10T15:28:26Z

On Thu, 2011-02-10 at 16:13 +0100, Guillaume LECERF wrote:
> Hi Anatolij.
>
> 2011/2/10 Anatolij Gustschin <agust@denx.de>:
> > When initializing mtd->writebufsize, we must take into account
> > possible flash chip interleaving. Wrong writebufsize initialization
> > caused UBIFS recovery issues resulting in unmountable UBIFS file
> > system on NOR flash partitions.
> > - mtd->writebufsize = 1 << cfi->cfiq->MaxBufWriteSize;
> > + mtd->writebufsize = cfi_interleave(cfi) << cfi->cfiq->MaxBufWriteSize;
>
>
> This is exactly what I told you (
> http://lists.infradead.org/pipermail/linux-mtd/2010-December/033559.html
> ).

Hehe, indeed :-) Anatolij came to that hard way instead :-)))

--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)