From 109ac32fb510c30ec64557179fd491435a0f1598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juha=20Riihim=C3=A4ki?= Date: Thu, 3 Dec 2009 15:56:07 +0200 Subject: [PATCH] handle SD CMD5 without error messages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Juha Riihimäki Signed-off-by: Juha Riihimäki Signed-off-by: Riku Voipio Signed-off-by: Aurelien Jarno --- hw/sd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/sd.c b/hw/sd.c index 7b345e71fb..cc2839d1a5 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;