From patchwork Tue Jul 2 09:20:21 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: 809071 Delivered-To: patch@linaro.org Received: by 2002:adf:a199:0:b0:367:895a:4699 with SMTP id u25csp117461wru; Tue, 2 Jul 2024 02:26:12 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCWaaHU1CX4vebE36T4NHfpjaNpA79KYp3WK4d+W8Q2SlxKBkXoDrSnChPgOLx1uzrC568TfBE8HknX0XCoUY4mw X-Google-Smtp-Source: AGHT+IGE8OykDiv6FRS/fks34x9vqtewBnZITIcHbwHaCE6Mi1odEy/G7sSoXrGi+G98dVqQTmpt X-Received: by 2002:a25:100a:0:b0:e03:527d:34ff with SMTP id 3f1490d57ef6-e036eafd649mr6962143276.3.1719912372248; Tue, 02 Jul 2024 02:26:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1719912372; cv=none; d=google.com; s=arc-20160816; b=fETm/wTGvSalmYn/V5pDEX1HCAzcORUpwqXM6e99HMCheMQRH0jH3zVPcMU8X0k7/y ksTNUQM1oIjEzrbJ7DWlkedvjKSPW79X/QalQxdmlULMZ7Ehh01gnhjUVtcz5cPg2Gt0 7uD4jmYvpS6vSgLaxOiVkYt86Uaj9WsJ+NE8xFXoBpxwORl4uquu6v2Ey9RX4o1B++QI 4wkjbBvAs8sDC97PgVU3g7YqNkXRCMlGI84AKtKP4HgdNsKBd9+DWHCweAOOWplKk5R/ gBZeXdc7Qp4U/Gw6BmEt/vDHFaxqvoFdEZrXzzG6CWImIr6ZOOXT2/jXT7RClpe4etC8 YhdA== 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=kBNEOV+SuPOCA0UAQQw56j+dIx9/wiXRzt0fyiV5P8w=; fh=/TyiCVzPJVYkT4NtrOYZRXAcrkaiLXA/rwqp4QqIc5M=; b=AV5mNGg9NDcW+HgUaO3uUpxG69kycB9CmP6rpybeX+qCM0xHGoAypFnyVPSEm6oMcg tX7sQk2kcWMQ8OQXdB3rlAJfjcJ5o0h8g9hqqMfPBiYM9RnFBKOo9K0snevLesFnAdhX ZQ9Fbiz7TsWAxtK6B1ZL/L10Mlueir9DvLdm8rvNARt3dSDdLQfLsTSBiRMxHwO0snvy U10DGzB6UXB6bMMrKfG1PQnL/aO/TB520phBu53ATEd5c5XJ8JhYhAUudNwaRsXuIIrn rGGWkXa1TgeMXoFFyH6+OicTDJ5KEarUw+uf2xlYdvENZW0WW7ST5LCRQ5NGh6rcWJci HcKA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=o90qysjr; 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 d75a77b69052e-446512cc3cdsi108638771cf.118.2024.07.02.02.26.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Jul 2024 02:26:12 -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=o90qysjr; 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 1sOZkp-0004KV-8p; Tue, 02 Jul 2024 05:24:56 -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 1sOZkh-0004Bt-Jh for qemu-devel@nongnu.org; Tue, 02 Jul 2024 05:24:43 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sOZke-0000B8-I7 for qemu-devel@nongnu.org; Tue, 02 Jul 2024 05:24:43 -0400 Received: by mail-wr1-x430.google.com with SMTP id ffacd0b85a97d-36532d177a0so2323182f8f.2 for ; Tue, 02 Jul 2024 02:24:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1719912279; x=1720517079; 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=kBNEOV+SuPOCA0UAQQw56j+dIx9/wiXRzt0fyiV5P8w=; b=o90qysjraVHbOFsngDjlV60Wt/wBfGVLdTAIjXX6k0OwKuif6cyunDkPjmkT/eD9VL S92k+2tOE9NRylOrZVg+8lQDSjicAc+Otm5oryBQNBdYUfiXgyDytZ2UIrcUY7BdJePY 04aIg6KYF0EJZX+7hzJQINWYgzZ/Q3c6l2pWDusEgnzu/esj5Q71+egoUn6ohhK30zkN fkSSXOer3aPa4LKUDC7/RmjhOTRJRP7elPanwsJy72nfSM8vKScLH6k8dM89wm1GJ2s+ m5P1trYMb7ymlNri1c8xcAFNEccEhAWY4vAfTIAu6WloJpoCe+p2cmylqxRwv9P0qjK3 FIcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719912279; x=1720517079; 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=kBNEOV+SuPOCA0UAQQw56j+dIx9/wiXRzt0fyiV5P8w=; b=tgBZzlAadz5u+n5vLSnfzf6SHtbEj4+Nwy94E19lMIlr94ziAK/AsuM0u5+tXi6w7Y qP/kOyet0QpW9u+frMThrqMyBCWqDl0KYd5aZmS2AndyjfsayVZNTT/XtvnwX9tK1/x6 Y346Wf6LIo5fKHdt2Us8N25sADO/Y1RL6tbQxgOSVws5GDh/2QHRz3rF6ni1XU+DMndn aCXExAvXL10VgdN6tj7L04zzN21SMj8fR8qJiJ6u7qnYjLkDMLuVAfDM8cClJr4p4gTt 2p6IugvrZwntQtG7vmwXEMtg0PPT//1kT883IKq7LYdld9iXL158yChiClDGOZvmc7hB j1CQ== X-Gm-Message-State: AOJu0YxezHDkr/L1wzowU2/rBD3JUrwB1MYQGxdgAbwQD/1mknFkKT4P sy+bldbIQ+xcH3XJKrywj5Vxb05UXR7+dujZwfePEsaVEXFEiEw4UCY9O7dY6PHKN5cxYUHKDAJ a X-Received: by 2002:a5d:54c9:0:b0:367:6b05:356a with SMTP id ffacd0b85a97d-367756bb441mr4604682f8f.36.1719912278951; Tue, 02 Jul 2024 02:24:38 -0700 (PDT) Received: from m1x-phil.lan ([176.187.209.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3675a0cd663sm12752958f8f.3.2024.07.02.02.24.37 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 02 Jul 2024 02:24:38 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , =?utf-8?q?C?= =?utf-8?q?=C3=A9dric_Le_Goater?= Subject: [PULL 38/67] hw/sd/sdcard: Register optional handlers from spec v6.00 Date: Tue, 2 Jul 2024 11:20:21 +0200 Message-ID: <20240702092051.45754-39-philmd@linaro.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20240702092051.45754-1-philmd@linaro.org> References: <20240702092051.45754-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=philmd@linaro.org; helo=mail-wr1-x430.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=ham 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é Tested-by: Cédric Le Goater Reviewed-by: Cédric Le Goater Message-Id: <20240628070216.92609-45-philmd@linaro.org> --- hw/sd/sd.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/hw/sd/sd.c b/hw/sd/sd.c index b4fd863189..f8672b6603 100644 --- a/hw/sd/sd.c +++ b/hw/sd/sd.c @@ -255,15 +255,11 @@ static const char *sd_cmd_name(SDState *sd, uint8_t cmd) [36] = "SW_FUNC_RSVD", [37] = "SW_FUNC_RSVD", [38] = "ERASE", [40] = "DPS_spec", - [42] = "LOCK_UNLOCK", [43] = "Q_MANAGEMENT", - [44] = "Q_TASK_INFO_A", [45] = "Q_TASK_INFO_B", - [46] = "Q_RD_TASK", [47] = "Q_WR_TASK", - [48] = "READ_EXTR_SINGLE", [49] = "WRITE_EXTR_SINGLE", + [42] = "LOCK_UNLOCK", [50] = "SW_FUNC_RSVD", [52] = "IO_RW_DIRECT", [53] = "IO_RW_EXTENDED", [54] = "SDIO_RSVD", [55] = "APP_CMD", [56] = "GEN_CMD", [57] = "SW_FUNC_RSVD", - [58] = "READ_EXTR_MULTI", [59] = "WRITE_EXTR_MULTI", [60] = "MANUF_RSVD", [61] = "MANUF_RSVD", [62] = "MANUF_RSVD", [63] = "MANUF_RSVD", }; @@ -2293,6 +2289,15 @@ static const SDProto sd_proto_sd = { [19] = {2, sd_adtc, "SEND_TUNING_BLOCK", sd_cmd_SEND_TUNING_BLOCK}, [20] = {2, sd_ac, "SPEED_CLASS_CONTROL", sd_cmd_optional}, [23] = {2, sd_ac, "SET_BLOCK_COUNT", sd_cmd_SET_BLOCK_COUNT}, + [43] = {1, sd_ac, "Q_MANAGEMENT", sd_cmd_optional}, + [44] = {1, sd_ac, "Q_TASK_INFO_A", sd_cmd_optional}, + [45] = {1, sd_ac, "Q_TASK_INFO_B", sd_cmd_optional}, + [46] = {1, sd_adtc, "Q_RD_TASK", sd_cmd_optional}, + [47] = {1, sd_adtc, "Q_WR_TASK", sd_cmd_optional}, + [48] = {1, sd_adtc, "READ_EXTR_SINGLE", sd_cmd_optional}, + [49] = {1, sd_adtc, "WRITE_EXTR_SINGLE", sd_cmd_optional}, + [58] = {11, sd_adtc, "READ_EXTR_MULTI", sd_cmd_optional}, + [59] = {11, sd_adtc, "WRITE_EXTR_MULTI", sd_cmd_optional}, }, };