From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:44680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOGiM-0006Ha-Tc for qemu-devel@nongnu.org; Sun, 22 May 2011 18:01:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOGiL-0006j8-QL for qemu-devel@nongnu.org; Sun, 22 May 2011 18:01:34 -0400 Received: from mtagate3.uk.ibm.com ([194.196.100.163]:54294) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOGiL-0006iv-Jb for qemu-devel@nongnu.org; Sun, 22 May 2011 18:01:33 -0400 Received: from d06nrmr1507.portsmouth.uk.ibm.com (d06nrmr1507.portsmouth.uk.ibm.com [9.149.38.233]) by mtagate3.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p4MM1VGK011090 for ; Sun, 22 May 2011 22:01:31 GMT Received: from d06av05.portsmouth.uk.ibm.com (d06av05.portsmouth.uk.ibm.com [9.149.37.229]) by d06nrmr1507.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p4MM1QJF2363530 for ; Sun, 22 May 2011 23:01:31 +0100 Received: from d06av05.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p4MM1Qsr011929 for ; Sun, 22 May 2011 16:01:26 -0600 From: Stefan Hajnoczi Date: Sun, 22 May 2011 23:01:16 +0100 Message-Id: <1306101677-26631-4-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1306101677-26631-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1306101677-26631-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 3/4] hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , Anthony Liguori , Stefan Hajnoczi From: Peter Maydell 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 --- hw/sd.c | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/hw/sd.c b/hw/sd.c index f44a970..cedfb20 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) -- 1.7.4.4