mtd: cfi: fix writebufsize initialization
authorAnatolij Gustschin <agust@denx.de>
Thu, 10 Feb 2011 15:01:46 +0000 (16:01 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 11 Mar 2011 14:22:46 +0000 (14:22 +0000)
commit13ce77f46c79a3839e4c2ff9722c9416c165f498
treedb584a38edc5478ffdd6326afbffddf7f9158dd5
parentd8f90b2c9d521500bcd4a1ecdcdb283bfdd2186f
mtd: cfi: fix writebufsize initialization

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.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Acked-by: Guillaume LECERF <glecerf@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/cfi_cmdset_0002.c
drivers/mtd/chips/cfi_cmdset_0020.c