[PATCH 2/2] mtd: cfi: fix writebufsize initialization
Artem Bityutskiy
dedekind1 at gmail.com
Thu Feb 10 10:27:18 EST 2011
On Thu, 2011-02-10 at 16:13 +0100, Guillaume LECERF wrote:
> Hi Anatolij.
>
> 2011/2/10 Anatolij Gustschin <agust at 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 (Артём Битюцкий)
More information about the linux-mtd
mailing list