From 4e25fcc11e9c845ffdfda392e4e1d4b94784c4a6 Mon Sep 17 00:00:00 2001 From: "munkyu.im" Date: Tue, 17 May 2011 17:27:08 +0900 Subject: [PATCH] sd: Don't complain about SDIO commands CMD52/CMD53 52, 53 commands are new command of SPIO spec. --- hw/sd.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/hw/sd.c b/hw/sd.c index 5e29752..0b90232 100644 --- a/hw/sd.c +++ b/hw/sd.c @@ -1103,6 +1103,18 @@ static sd_rsp_type_t sd_normal_command(SDState *sd, break; } 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 */ -- 2.7.4