From: Artem Bityutskiy Date: Sun, 31 Oct 2010 16:55:30 +0000 (+0200) Subject: UBI: always re-read in case of read failures X-Git-Tag: v2.6.39-rc1~422^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a87f29cbbcbd5bd1e4990367cd18967e9bbeacff;p=pandora-kernel.git UBI: always re-read in case of read failures 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: Artem Bityutskiy --- Reading git-diff-tree failed