From: Wolfgang Muees Date: Tue, 26 May 2009 07:56:19 +0000 (+0100) Subject: mmc_spi: don't use EINVAL for possible transmission errors X-Git-Tag: v2.6.31-rc1~340^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdd858db7113ca64132de390188d7ca00701013d;p=pandora-kernel.git mmc_spi: don't use EINVAL for possible transmission errors This patch changes the reported error code for the responses to a command from EINVAL to EFAULT/ENOSYS, as EINVAL is reserved for non-recoverable host errors, and the responses from the SD/MMC card may be because of recoverable transmission errors in the command or in the response. Response codes in SPI mode are NOT protected by a checksum, so don't trust them. Signed-off-by: Wolfgang Muees Acked-by: Matt Fleming Signed-off-by: Pierre Ossman --- Reading git-diff-tree failed