• Artem Bityutskiy's avatar
    UBI: improve NOR flash erasure quirk · de75c771
    Artem Bityutskiy authored
    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.
    de75c771
io.c 39.7 KB