qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: "Philippe Mathieu-Daudé" <philmd@linaro.org>,
	qemu-block@nongnu.org, "Cédric Le Goater" <clg@kaod.org>,
	devel@lists.libvirt.org, "Bin Meng" <bmeng.cn@gmail.com>,
	"Sai Pavan Boddu" <sai.pavan.boddu@amd.com>,
	"Joel Stanley" <joel@jms.id.au>
Subject: [PATCH 2/3] hw/sd/sdcard: Use spec v3.01 by default
Date: Thu, 27 Jun 2024 09:10:38 +0200	[thread overview]
Message-ID: <20240627071040.36190-3-philmd@linaro.org> (raw)
In-Reply-To: <20240627071040.36190-1-philmd@linaro.org>

Recent SDHCI expect cards to support the v3.01 spec
to negociate lower I/O voltage. Select it by default.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
 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 a48010cfc1..d0a1d5db18 100644
--- a/hw/sd/sd.c
+++ b/hw/sd/sd.c
@@ -2280,7 +2280,7 @@ static void sd_realize(DeviceState *dev, Error **errp)
 
 static Property sd_properties[] = {
     DEFINE_PROP_UINT8("spec_version", SDState,
-                      spec_version, SD_PHY_SPECv2_00_VERS),
+                      spec_version, SD_PHY_SPECv3_01_VERS),
     DEFINE_PROP_DRIVE("drive", SDState, blk),
     /* We do not model the chip select pin, so allow the board to select
      * whether card should be in SSI or MMC/SD mode.  It is also up to the
-- 
2.41.0



  parent reply	other threads:[~2024-06-27  7:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-27  7:10 [PATCH 0/3] hw/sd/sdcard: Deprecate support for spec v1.10 Philippe Mathieu-Daudé
2024-06-27  7:10 ` [PATCH 1/3] " Philippe Mathieu-Daudé
2024-06-27  7:55   ` Cédric Le Goater
2024-06-27  7:10 ` Philippe Mathieu-Daudé [this message]
2024-06-27  7:55   ` [PATCH 2/3] hw/sd/sdcard: Use spec v3.01 by default Cédric Le Goater
2024-06-27  7:10 ` [PATCH-for-10.0 3/3] hw/sd/sdcard: Remove support for spec v1.10 Philippe Mathieu-Daudé
2025-09-01  7:29   ` Philippe Mathieu-Daudé
2025-09-01  7:41     ` Philippe Mathieu-Daudé
2025-09-02 10:03       ` Philippe Mathieu-Daudé
2025-09-02 10:14 ` [PATCH 0/3] hw/sd/sdcard: Deprecate " Philippe Mathieu-Daudé

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240627071040.36190-3-philmd@linaro.org \
    --to=philmd@linaro.org \
    --cc=bmeng.cn@gmail.com \
    --cc=clg@kaod.org \
    --cc=devel@lists.libvirt.org \
    --cc=joel@jms.id.au \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=sai.pavan.boddu@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).