remarkable-linux/drivers/mtd/ubi
Qi Wang 王起 (qiwang) 2c7ca5cc36 UBI: avoid program operation on NOR flash after erasure interrupted
nor_erase_prepare() will be called before erase a NOR flash, it will program '0'
into a block to mark this block. But program data into a erasure interrupted block
can cause program timtout(several minutes at most) error, could impact other
operation on NOR flash. So UBIFS can read this block first to avoid unneeded
program operation.

This patch try to put read operation at head of write operation in
nor_erase_prepare(), read out the data.
If the data is already corrupt, then no need to program any data into this block,
just go to erase this block.

This patch is validated on Micron NOR flash, part number is:JS28F512M29EWHA

Signed-off-by: Qi Wang <qiwang@micron.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
2014-01-09 18:25:38 +02:00
..
attach.c UBI: fix error return code 2014-01-02 17:16:01 +02:00
build.c UBI: fix error return code 2014-01-02 17:16:01 +02:00
cdev.c ubi/cdev: switch to fixed_size_llseek() 2013-06-29 12:57:49 +04:00
debug.c
debug.h
eba.c
fastmap.c UBI: Add some asserts to ubi_attach_fastmap() 2013-10-03 19:42:51 +03:00
gluebi.c
io.c UBI: avoid program operation on NOR flash after erasure interrupted 2014-01-09 18:25:38 +02:00
kapi.c
Kconfig
Makefile
misc.c
ubi-media.h
ubi.h
upd.c
vmt.c
vtbl.c
wl.c UBI: fix refill_wl_user_pool() 2013-10-03 19:42:46 +03:00