aboutsummaryrefslogtreecommitdiff
path: root/hw/sd.c
diff options
context:
space:
mode:
authorJuha Riihimäki <juha.riihimaki@nokia.com>2009-12-03 15:56:07 +0200
committerAurelien Jarno <aurelien@aurel32.net>2009-12-18 23:23:56 +0100
commit109ac32fb510c30ec64557179fd491435a0f1598 (patch)
tree61250324a89e208c2260ba3e0b4430d84ed75431 /hw/sd.c
parent659139d780ed6ecfaff4a8a904dab37d179017d1 (diff)
downloadqemu-109ac32fb510c30ec64557179fd491435a0f1598.zip
qemu-109ac32fb510c30ec64557179fd491435a0f1598.tar.gz
qemu-109ac32fb510c30ec64557179fd491435a0f1598.tar.bz2
handle SD CMD5 without error messages
From: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com> Signed-off-by: Riku Voipio <riku.voipio@nokia.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'hw/sd.c')
-rw-r--r--hw/sd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/sd.c b/hw/sd.c
index 7b345e7..cc2839d 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -669,6 +669,10 @@ static sd_rsp_type_t sd_normal_command(SDState *sd,
}
break;
+ case 5: /* CMD5: reserved for SDIO cards */
+ sd->card_status |= ILLEGAL_COMMAND;
+ return sd_r0;
+
case 6: /* CMD6: SWITCH_FUNCTION */
if (sd->spi)
goto bad_cmd;