From nobody Tue Feb 10 16:22:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516677845135831.9475482830495; Mon, 22 Jan 2018 19:24:05 -0800 (PST) Received: from localhost ([::1]:59019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edpBs-0004ya-A0 for importer@patchew.org; Mon, 22 Jan 2018 22:24:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1edp9w-0003dp-1c for qemu-devel@nongnu.org; Mon, 22 Jan 2018 22:22:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1edp9s-0000gh-TK for qemu-devel@nongnu.org; Mon, 22 Jan 2018 22:22:04 -0500 Received: from mail-qt0-x243.google.com ([2607:f8b0:400d:c0d::243]:44332) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1edp9s-0000g4-OO for qemu-devel@nongnu.org; Mon, 22 Jan 2018 22:22:00 -0500 Received: by mail-qt0-x243.google.com with SMTP id l20so25095922qtj.11 for ; Mon, 22 Jan 2018 19:22:00 -0800 (PST) Received: from x1.lan ([138.117.48.219]) by smtp.gmail.com with ESMTPSA id x207sm5545567qka.91.2018.01.22.19.21.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 22 Jan 2018 19:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=q6soJbQ2lirwS32h14Bli6LmGIRmPUD75nWtA4J1mhM=; b=NJBO1zNKL4IIUWGvShkTp3rsiePyh9xNomElcQqwkJ6fIZd+xdGkBddzdEwgB9WYtO V03oHoKHKeqnSFcN2nmE5NdIGm4FNTdssQ7xgGxO38PfiPztEkaiEVZRkyuOlmayTHsx //ORP3Te0Tt0Yozgb7IEoafiK4AVCk0nymJg44iuMnF7sLEayr04ZG18Pq4nuXi5JYuE XKzuJNo0myrcDG/RNfd5RIczOt16vcpgBSu86G64JnJV0NpOcj1MrHASvYeCYekFySFJ H/mo/+/L4kWCP5OjLlxx92/hRv6K7Fbq0a5yIpCuvKmyszMCv+hNvWJ++q/q6biscc9d El7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=q6soJbQ2lirwS32h14Bli6LmGIRmPUD75nWtA4J1mhM=; b=tYdFRhXbupWqTCG9zllOA1AoEwprE9RuBAjynXG+is28WhwuNa29A4E4xhnNejAi+b CXtKQR6esbdaGlos8ba5YmWfSdyw9g9B6LHock0SZs2zgwG1nVHWiBq4f9JEihKWOH3v 2MhjkozPNLPBw50zhC4ITdcOYnRb8I+ebsTgPlcwX3dyTgJrUEm0u+wBqcmYdA/8RqA7 9aGNtPCu6/OuST5lAVHltQEWCaspFSqY0Qf2bRT2faf6SAl8PlWnO5pRi3EddrwGMlws qup9yPRuq3Ap9Nth1Se/IpZzAgf3T5f765UAzuIRBXRQzgs3YQW8kSMyfFAB6K7fz1OO 6idA== X-Gm-Message-State: AKwxytdzY8YWv0eW0rkSuSRaS6BYkCUAPpnUGxf7YP0WUE+VUdjzEsvZ bpOSNSr5I6Rrm/Gjq35SElnW4/VV X-Google-Smtp-Source: AH8x225Y++jLfZMZfkOgo+jkDkumAfqw84jo8HpMBuBgvjz/7RDt3Vm6nV6zq83sJZ9Q71MJ1RWxkQ== X-Received: by 10.55.163.65 with SMTP id m62mr1623212qke.82.1516677720342; Mon, 22 Jan 2018 19:22:00 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: Alistair Francis , Peter Maydell , Igor Mitsyanko Date: Tue, 23 Jan 2018 00:21:29 -0300 Message-Id: <20180123032135.28863-7-f4bug@amsat.org> X-Mailer: git-send-email 2.15.1 In-Reply-To: <20180123032135.28863-1-f4bug@amsat.org> References: <20180123032135.28863-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::243 Subject: [Qemu-devel] [PATCH v3 06/12] sdcard: do not trace CMD55 when expecting ACMD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E . Iglesias" , Prasad J Pandit , Peter Crosthwaite , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Signed-off-by: Philippe Mathieu-Daud=C3=A9 Acked-by: Alistair Francis --- hw/sd/sd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index dc4b2329e4..27c08aa894 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -816,13 +816,15 @@ static void sd_lock_command(SDState *sd) sd->card_status &=3D ~CARD_IS_LOCKED; } =20 -static sd_rsp_type_t sd_normal_command(SDState *sd, - SDRequest req) +static sd_rsp_type_t sd_normal_command(SDState *sd, SDRequest req) { uint32_t rca =3D 0x0000; uint64_t addr =3D (sd->ocr & (1 << 30)) ? (uint64_t) req.arg << 9 : re= q.arg; =20 - trace_sdcard_normal_command(req.cmd, req.arg, sd_state_name(sd->state)= ); + if (req.cmd !=3D 55 || sd->expecting_acmd) { + trace_sdcard_normal_command(req.cmd, req.arg, + sd_state_name(sd->state)); + } =20 /* Not interpreting this as an app command */ sd->card_status &=3D ~APP_CMD; --=20 2.15.1