]> git.baikalelectronics.ru Git - kernel.git/commit
mmc_spi: don't use EINVAL for possible transmission errors
authorWolfgang Muees <wolfgang.mues@auerswald.de>
Tue, 26 May 2009 07:56:19 +0000 (08:56 +0100)
committerPierre Ossman <pierre@ossman.eu>
Sat, 13 Jun 2009 20:42:59 +0000 (22:42 +0200)
commitb626d21a8ca2fb7948bfc2d961707c75b3fb9a96
treecf24d0a46c06fa489730553d97279a93b0a1b9e1
parent5f4d4cad2a13c852cf12e80474a8542acd776bc2
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 <wolfgang.mues@auerswald.de>
Acked-by: Matt Fleming <matt@console-pimps.org>
Signed-off-by: Pierre Ossman <pierre@ossman.eu>
drivers/mmc/host/mmc_spi.c