kernel-fxtec-pro1x/include/linux/mtd
Anatolij Gustschin 0e4ca7e510 mtd: add writebufsize field to mtd_info struct
This field will be used to indicate the write buffer size
of the MTD device. UBI will set it's minimal I/O unit size
(min_io_size) to the indicated write buffer size. By this
change we intend to fix failed recovery of UBIFS partitions
we currently observe on NOR flash when mounting the partition
after unclean unmount.

Currently the min_io_size is set to mtd->writesize (which is 1
byte for NOR flash). But flash programming is often done from
prepared write buffer containing multiple bytes and is performed
in one programming operation which could be interrupted by a power
cut or a system reset causing corrupted (partially written) areas
in a flash sector. Knowing the size of potentially corrupted areas
UBIFS scanning and recovery algorithms are able to perform
successful recovery.

In case of NOR flash minimal I/O size must be equal to the
maximal size of the write buffer used by embedded flash
programming algorithm. In case of NAND flash mtd->writebufsize
should be equivalent to mtd->writesize.

The subsequent patches will add mtd->writebufsize initialization
where needed.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
2011-01-06 15:35:50 +00:00
..
bbm.h mtd: nand: introduce NAND_CREATE_EMPTY_BBT 2010-10-25 00:54:37 +01:00
blktrans.h
cfi.h mtd: cfi_fixup: remove unused 'param' parameter 2010-12-03 16:31:00 +00:00
cfi_endian.h
concat.h
doc2000.h
flashchip.h
fsmc.h mtd: FSMC NAND fix obvious speling errors 2010-12-03 16:35:40 +00:00
ftl.h
gen_probe.h
inftl.h
map.h
mtd.h mtd: add writebufsize field to mtd_info struct 2011-01-06 15:35:50 +00:00
mtdram.h
nand-gpio.h
nand.h mtd: fix nand kernel-doc warnings 2010-12-03 16:31:24 +00:00
nand_ecc.h
ndfc.h
nftl.h
onenand.h mtd: OneNAND: add enable / disable methods to onenand_chip 2011-01-06 15:34:19 +00:00
onenand_regs.h
partitions.h mtd: fix master device identification for mtd repartition 2010-12-03 16:32:35 +00:00
pfow.h
physmap.h
pismo.h
plat-ram.h
pmc551.h
qinfo.h
sh_flctl.h
sharpsl.h
super.h convert get_sb_mtd() users to ->mount() 2010-10-29 04:16:26 -04:00
ubi.h
xip.h