From: Sonic Zhang Date: Mon, 12 Jul 2010 07:50:56 +0000 (+0800) Subject: mmc_spi: Recover from CRC errors for r/w operation over SPI. X-Git-Tag: v2.6.37-rc1~65^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=061c6c847eeb11743e489a16e907b41c6f9042b6;p=pandora-kernel.git mmc_spi: Recover from CRC errors for r/w operation over SPI. The SPI bus is not reliable for large data transfers on all platforms. The current mmc_spi driver fails SD read/write commands immediately if occasional CRC errors are reported by the SD device. This patch makes the operation recover from CRC errors by repeating the last SD command. The retry count is set to 5 to ensure the driver passes stress tests. Signed-off-by: Sonic Zhang Signed-off-by: Mike Frysinger Signed-off-by: Chris Ball --- Reading git-diff-tree failed