summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorQi Wang 王起 (qiwang) <qiwang@micron.com>2014-01-01 13:06:11 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-11 15:53:24 +0200
commite621ee94ba356b1f439ef02eec3de94898d09593 (patch)
tree322d2e6858060aabe484524c8b42b7bd736d5f8b /Kconfig
parent1c8847c13f9c5fbc850e33e3d4baa26a35537804 (diff)
downloadbarebox-e621ee94ba356b1f439ef02eec3de94898d09593.tar.gz
barebox-e621ee94ba356b1f439ef02eec3de94898d09593.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 'Kconfig')
0 files changed, 0 insertions, 0 deletions