From: Peter Maydell Date: Fri, 20 May 2011 09:11:53 +0000 (+0100) Subject: hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 X-Git-Tag: qemu-xen-4.2.0~889^2~1 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=39e594dbcd897849f2ca95b3310ea00fff29ea99;p=qemu-xen.git hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 The SDIO specification introduces new commands 52 and 53. Handle as illegal command but do not complain on stderr, as SDIO-aware OSes (including Linux) may legitimately use these in their probing for presence of an SDIO card. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- diff --git a/hw/sd.c b/hw/sd.c index f44a97092b..cedfb20249 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -1104,6 +1104,17 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, } break; + case 52: + case 53: + /* CMD52, CMD53: reserved for SDIO cards + * (see the SDIO Simplified Specification V2.0) + * Handle as illegal command but do not complain + * on stderr, as some OSes may use these in their + * probing for presence of an SDIO card. + */ + sd->card_status |= ILLEGAL_COMMAND; + return sd_r0; + /* Application specific commands (Class 8) */ case 55: /* CMD55: APP_CMD */ if (sd->rca != rca)