From nobody Wed Apr 16 17:27:59 2025 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; 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; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1519313793855294.2864272181448; Thu, 22 Feb 2018 07:36:33 -0800 (PST) Received: from localhost ([::1]:39039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eosvB-0007dZ-21 for importer@patchew.org; Thu, 22 Feb 2018 10:36:33 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38468) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eosih-0004u2-6p for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eosig-0001lJ-Ap for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:39 -0500 Received: from orth.archaic.org.uk ([2001:8b0:1d0::2]:46608) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eosig-0001ke-3U for qemu-devel@nongnu.org; Thu, 22 Feb 2018 10:23:38 -0500 Received: from pm215 by orth.archaic.org.uk with local (Exim 4.89) (envelope-from ) id 1eosif-00024i-6E for qemu-devel@nongnu.org; Thu, 22 Feb 2018 15:23:37 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Thu, 22 Feb 2018 15:22:54 +0000 Message-Id: <20180222152307.7499-20-peter.maydell@linaro.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180222152307.7499-1-peter.maydell@linaro.org> References: <20180222152307.7499-1-peter.maydell@linaro.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: 2001:8b0:1d0::2 Subject: [Qemu-devel] [PULL 19/32] sdcard: fix the 'maximum data transfer rate' to 25MHz 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: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Philippe Mathieu-Daud=C3=A9 To comply with Spec v1.10 (and 2.00, 3.01): . TRAN_SPEED for current SD Memory Cards that field must be always 0_0110_010b (032h) wh= ich is equal to 25MHz - the mandatory maximum operating frequency of SD Memory Car= d. Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Alistair Francis Message-id: 20180215221325.7611-4-f4bug@amsat.org [PMM: fixed comment indent] Signed-off-by: Peter Maydell --- hw/sd/sd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index 110f2f1d0a..3526269dbe 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -357,7 +357,7 @@ static void sd_set_csd(SDState *sd, uint64_t size) sd->csd[0] =3D 0x00; /* CSD structure */ sd->csd[1] =3D 0x26; /* Data read access-time-1 */ sd->csd[2] =3D 0x00; /* Data read access-time-2 */ - sd->csd[3] =3D 0x5a; /* Max. data transfer rate */ + sd->csd[3] =3D 0x32; /* Max. data transfer rate: 25 MHz */ sd->csd[4] =3D 0x5f; /* Card Command Classes */ sd->csd[5] =3D 0x50 | /* Max. read data block length */ HWBLOCK_SHIFT; --=20 2.16.1