diff options
author | Qi Wang 王起 (qiwang) <qiwang@micron.com> | 2014-01-01 13:06:11 (GMT) |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2014-01-09 16:25:38 (GMT) |
commit | 2c7ca5cc3624e05a5235f70039adce30725972d6 (patch) | |
tree | 97d43cb7b5e6616370011544d0e8d6a8f37b630f /lib/cpu_rmap.c | |
parent | b6b44e0ad27881d4649b2afa15a27fb8867210ea (diff) | |
download | linux-2c7ca5cc3624e05a5235f70039adce30725972d6.tar.xz |
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>
Diffstat (limited to 'lib/cpu_rmap.c')
0 files changed, 0 insertions, 0 deletions