From patchwork Fri May 20 09:11:53 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 1550 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:52:58 -0000 Delivered-To: patches@linaro.org Received: by 10.224.54.134 with SMTP id q6cs152710qag; Fri, 20 May 2011 02:11:56 -0700 (PDT) Received: by 10.227.128.138 with SMTP id k10mr3943911wbs.82.1305882715725; Fri, 20 May 2011 02:11:55 -0700 (PDT) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id d10si6602869wbh.105.2011.05.20.02.11.55 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 20 May 2011 02:11:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1QNLkP-0006Vc-Gk; Fri, 20 May 2011 10:11:53 +0100 From: Peter Maydell To: qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, patches@linaro.org Subject: [PATCH] hw/sd.c: Don't complain about SDIO commands CMD52/CMD53 Date: Fri, 20 May 2011 10:11:53 +0100 Message-Id: <1305882713-24997-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 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 --- 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)