aboutsummaryrefslogtreecommitdiff
path: root/arch/m68k
diff options
context:
space:
mode:
authorWolfgang Muees <wolfgang.mues@auerswald.de>2009-09-22 16:45:26 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2009-10-05 09:31:38 -0700
commit904f470bbf1cb422b963bc3d479930e0968c30ed (patch)
tree23ac8db7488eeb33bb3ba9c62ca2a10b3ed59acb /arch/m68k
parentb01436041fc2be04f5dbbbfdc5a37643cd9417b4 (diff)
mmc_spi: fail gracefully if host or card do not support the switch command
commit d08ebeddfb3293fa4bdfca9c610daf1e8ec8b233 upstream. Some time ago, I have send a patch to the mmc_spi subsystem changing the error codes. This was after a discussion with Pierre about using EINVAL only for non-recoverable errors. This patch was accepted as http://git.kernel.org/linus/fdd858db7113ca64132de390188d7ca00701013d Unfortunately, several weeks later, I realized that this patch has opened a little can of worms because there are SD cards on the market which a) claim that they support the switch command AND b) refuse to execute this command if operating in SPI mode. So, such a card would get unusuable in an embedded linux system in SPI mode, because the init sequence terminates with an error. This patch adds the missing error codes to the caller of the switch command and restores the old behaviour to fail gracefully if these commands can not execute. Signed-off-by: Wolfgang Muees <wolfgang.mues@auerswald.de> Cc: <linux-mmc@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/m68k')
0 files changed, 0 insertions, 0 deletions