mmc_block: ensure all sectors that do not have errors are read
authorAdrian Hunter <ext-adrian.hunter@nokia.com>
Wed, 31 Dec 2008 17:21:17 +0000 (18:21 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Mon, 31 Jan 2011 23:49:52 +0000 (01:49 +0200)
commitf6310cc77355af9ef2ea79591692c3a538083898
treed7b2061e64057d2fed3c095f654e9aa2eb705d79
parentb5ad53a177a22be5c16a547e391f4bbb0562df39
mmc_block: ensure all sectors that do not have errors are read

If a card encounters an ECC error while reading a sector it will
timeout.  Instead of reporting the entire I/O request as having
an error, redo the I/O one sector at a time so that all readable
sectors are provided to the upper layers.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/card/block.c