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

Guillaume LECERF glecerf at gmail.com
Thu Feb 10 10:13:31 EST 2011


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

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

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



More information about the linux-mtd mailing list