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

Guillaume LECERF
2011-02-10T15:13:57Z

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
).

Could you examine the (not compilable) patches I attached and merge
them with your current patch ?

--
Guillaume LECERF
GeeXboX developer - www.geexbox.org