summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-06 08:57:53 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2009-07-07 11:37:45 +0300
commitebf53f421308c2f59c9bcbad4c5c297a0d00199a (patch)
tree1ec5084484bcaea259a210147cb278af4286f7e6 /lib
parentfe96efc1a3c049f0a1bcd9b65e0faeb751ce5ec6 (diff)
downloadop-kernel-dev-ebf53f421308c2f59c9bcbad4c5c297a0d00199a.zip
op-kernel-dev-ebf53f421308c2f59c9bcbad4c5c297a0d00199a.tar.gz
UBI: fix NOR flash recovery
This commit fixes NOR flash recovery issues observed with Spansion S29GL512N NOR. When NOR erases, it first fills PEBs with zeroes, then sets all bytes to 0xFF. Filling with zeroes starts from the end of the PEB. And when power is cut, this results in PEBs containing correct EC and VID headers but corrupted with zeros at the end. This confuses UBI and it mistakinly accepts these PEBs and associate them with LEBs. Fis this issue by zeroing EC and VID magics before erasing PEBs, to make UBI later refuse zem. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud