]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
committerPierre Ossman <drzeus@drzeus.cx>
Wed, 31 Dec 2008 17:21:17 +0000 (18:21 +0100)
commit6a79e391df295bd7c2aa1309ea5031f361c197fd
tree81789b2131bfd64c6478cd979bb35b4d6df94186
parenta0d045cac9bcb3e9a9796d596415f7ffb64852e2
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