• Artem Bityutskiy's avatar
    UBI: always re-read in case of read failures · a87f29cb
    Artem Bityutskiy authored
    When the read operation fails, UBI tries to re-read several times in
    a hope that one of the subsequent reads may succeed. However, currently
    UBI re-reads only if MTD failed to read all data, but does not re-reads
    if all the data were read, but with an integrity error (-EBADMSB). This
    patch makes UBI to always re-try reading.
    
    This should be useful for reading NAND pages with unstable bits -
    re-reading may help to get correct data.
    Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
    a87f29cb
io.c 42.1 KB