From: Artem Bityutskiy Date: Fri, 24 Jul 2009 13:18:04 +0000 (+0300) Subject: UBI: improve NOR flash erasure quirk X-Git-Tag: Release-2010-05/1~3^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=708facbe8ffad57767d5f3f2fe6a681ffa619999;p=pandora-kernel.git UBI: improve NOR flash erasure quirk More testing of NOR flash against power cuts showed that sometimes eraseblocks may be unwritable, and we cannot really invalidate them before erasure. But in this case the eraseblock probably contains garbage anyway, and we do not have to invalidate the headers. This assumption might be not true, but this is at least what I have observed. So if we cannot invalidate the headers, we make sure that the PEB does not contain valid VID header. If this is true, everything is fine, otherwise we panic. --- Reading git-diff-tree failed