From patchwork Sun May 22 22:01:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Hajnoczi X-Patchwork-Id: 96793 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3B127B6FB1 for ; Mon, 23 May 2011 08:02:11 +1000 (EST) Received: from localhost ([::1]:40668 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOGiu-0006dL-JE for incoming@patchwork.ozlabs.org; Sun, 22 May 2011 18:02:08 -0400 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 Received: from stefanha-thinkpad.ibm.com (nov02593-009145237072.de.ibm.com [9.145.237.72]) by d06av05.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p4MM1Nax011895; Sun, 22 May 2011 16:01:25 -0600 From: Stefan Hajnoczi To: Date: Sun, 22 May 2011 23:01:16 +0100 Message-Id: <1306101677-26631-4-git-send-email-stefanha@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.4 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> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 194.196.100.163 Cc: Peter Maydell , Anthony Liguori , Stefan Hajnoczi Subject: [Qemu-devel] [PATCH 3/4] hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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)