From patchwork Tue Jun 25 05:53:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 807244 Delivered-To: patch@linaro.org Received: by 2002:a5d:508d:0:b0:362:4979:7f74 with SMTP id a13csp2195731wrt; Mon, 24 Jun 2024 22:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCV/pI1CwN4+u97oEY2YksDd/EilFpNtae4BNwaQxjT/deIk459gboitpHtniNDadUrN7qcVizfm81vv4WScnyMd X-Google-Smtp-Source: AGHT+IEppJa/IuO3iQ/avfg+ob1lcr42wwO2Gaan5S7JYiQ9DGFh63g5smReEuoI3XcPwW5dsX8P X-Received: by 2002:a05:6214:29e1:b0:6b4:7910:2b60 with SMTP id 6a1803df08f44-6b5409a5064mr81838126d6.6.1719294948520; Mon, 24 Jun 2024 22:55:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719294948; cv=none; d=google.com; s=arc-20160816; b=S9n2ghKoLU5ijhZjo3rmxondSnvCzp281sC9Dg6ZU0WJdagEjlQOo5EMQJGzmtuIp1 RkNY+azSFgFWbJi2cZgsS2O5pCIw77SDnrWAABvBrNzACOcy4szfxmEp/pnaZVXgvKiT Kmv1xzU6yl5nvho9Snzly+TH3mef+0fxQ1qBSpzoinVQhw1vr10kFLj6fuVFGPrpAEVL gcEXAtbX8UzZIkIO7o1JPcVmcbK0SskyXG3pdFL/TpHgrOV71GgOsYGujSz27BqkhjgP PIIh1ut/RHWu4Yxyw/1JKtuxrReQIO2ncvgrs4RpKnzaBtW/EkfHr1VR1/WzOFi+GYbL hR3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DSh3z/dbSRZy4hlbUrmDOZ6ZGH/UkGencdxAnicUEVY=; fh=quH1+0vgULqv3LP6tEyzMNyrHO9n10VlAKocz0j0xjQ=; b=m6Vc2bIF7+3nRIms/mGekdBy/hGnHTx7JkNhq4Z+PdW+LtaxEPgJYFHkQ5q94XYH9x tF3/puWIyfK9aU1eSfFrw0bFQLc29UwcEEyyfeJjlfBFV4FjY9eLeGyWkVAw4qmfnEkO h3CWNykyzGnGzHSu52lUVfB3KNKVGQdBMHLqXeV8czBstzY+B/gqZ18HpPzOmUFRjz6W bz+ZoqJt5AUeaZfJcSOKugNYX8FO/Bcv/PyCdmqeCG9i2UIjMO0J+qNuQNLxy8PzAOJJ zFVHWWvn5nIe+XdDTgeZTN5s8YCJy9Yh684yswS5xG4hQfkGAxTrh7cWV9c9K76osLug 3Okg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ek6BuXH1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6b51ecebb6dsi100269856d6.32.2024.06.24.22.55.48 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 24 Jun 2024 22:55:48 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ek6BuXH1; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLz8h-0002GI-SZ; Tue, 25 Jun 2024 01:54:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLz8f-0002DZ-Ol for qemu-devel@nongnu.org; Tue, 25 Jun 2024 01:54:45 -0400 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLz8e-0001f1-8v for qemu-devel@nongnu.org; Tue, 25 Jun 2024 01:54:45 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-421a1b834acso42172975e9.3 for ; Mon, 24 Jun 2024 22:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719294882; x=1719899682; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=DSh3z/dbSRZy4hlbUrmDOZ6ZGH/UkGencdxAnicUEVY=; b=ek6BuXH12R2UURVh7SCD/ZV+v7CXyLk94XCMJ5H0xfwUAZFhn3ZD+K71MiUzgnhby/ VuOAElUTC/DLbyyp0Om8k9ZORIRpp6aio1ULXPR3+VA1O8qqr74DlQL/KqOic/rIMNtv jhi4gKGQi/+6DOavXot09m8u75107WBTC5jhTafdTHw2u/RGbI2AY2R29QmuxAn0TcJ3 dACecCQJAOAA1RSwAxYFW9ik1JSTuSwUT8/nf4QtpzUrdaNYdnoqrzB1krpa/jFRrOjP ChzQx7bJEfkgJb2Q1xwkAogJSzvUeex5usVPL/jGiKUgHPYTYbtnNIl1D0FjGfdQGcfo p13A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719294882; x=1719899682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DSh3z/dbSRZy4hlbUrmDOZ6ZGH/UkGencdxAnicUEVY=; b=cAiXXkIgjlN4V3L9+LX2ATK4bZiZ6MB4fkM2txf0tsdGVyL+9e7/t+/3Rtk41pXiyC ZcQ3EG8eeOYuREqCQWUuHKT43ncbOa4mlw7ppYzIMrDQN2owxMuU75tTLp//yB69y3PF e7GHckokDXE5aUWdbKWm/bBW9V0UCPNsy/MFAW3JX6Q+N0YPSJb79FGCuPoKnVTeTPjJ 6SDQMyJEI8xtTPDR1gCPcwPSp/IRRAvKDbCIFDmqrG5USFqirVu2Hl7OvXaOppfZKkXz WCS4lBgU2MMhmjFlCksQQyhrMjp0ftNdw8WI4cSRFXH1tboJFfBnBzgZ6B5zflS8KL3p hFiQ== X-Gm-Message-State: AOJu0YyonwLAxnv5u/H5g4kugnFOd2A+q9znDgTkLqkSODSDhhLR+ukH P5Syf/Y2fEid2EuthcUYQ8DRcHLWdlqS0QcuMZpqfp0PsYFbRUSJtgpNZrNWBHVtaFkb6ehpOB8 3 X-Received: by 2002:a05:600c:4f4d:b0:424:8f0d:c07f with SMTP id 5b1f17b1804b1-4248f0dce13mr33943175e9.4.1719294882495; Mon, 24 Jun 2024 22:54:42 -0700 (PDT) Received: from m1x-phil.lan (bd137-h02-176-184-46-22.dsl.sta.abo.bbox.fr. [176.184.46.22]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-424817a9975sm155739065e9.14.2024.06.24.22.54.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 24 Jun 2024 22:54:42 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= , Bin Meng Subject: [PATCH v2 08/12] hw/sd/sdcard: Use READY_FOR_DATA definition instead of magic value Date: Tue, 25 Jun 2024 07:53:49 +0200 Message-ID: <20240625055354.23273-9-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240625055354.23273-1-philmd@linaro.org> References: <20240625055354.23273-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@linaro.org; helo=mail-wm1-x32d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- 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 0742ba8b38..8816bd6671 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -557,7 +557,7 @@ FIELD(CSR, OUT_OF_RANGE, 31, 1) static void sd_set_cardstatus(SDState *sd) { - sd->card_status = 0x00000100; + sd->card_status = READY_FOR_DATA; } static void sd_set_sdstatus(SDState *sd)