Message ID | 20250112221726.30206-26-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:525c:0:b0:385:e875:8a9e with SMTP id k28csp1179587wrc; Sun, 12 Jan 2025 14:24:41 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV9w9P1PK9f46Jh9w+yEvoD223lfPYxlxoYVwDhkRTGa70xRsfJLGnOLntbkm7lu1247Jokuw==@linaro.org X-Google-Smtp-Source: AGHT+IFDBiwe73jPsPBLymwULDf+McyFdu9EZ+/HPeQRsU/Gfd+O+yKZUQdT0UuUAAAKxyP3dKvn X-Received: by 2002:a05:620a:410e:b0:7b1:3f19:b81a with SMTP id af79cd13be357-7bcd97d1965mr3392997385a.53.1736720681706; Sun, 12 Jan 2025 14:24:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1736720681; cv=none; d=google.com; s=arc-20240605; b=U3iUley7/j5ILJBnr0Prix0pJRLqYsvubLLShnXG7uv9nIm5dZ8g5EIEn2nBNnKMh7 mbDLElcj+w5V1tTXnRWsM3hxVgRBlKscpR1O6y5fDC2Ajpr4DyA1aKOE1c0UkmTwgj6u TdIYXiQgWHsT/OYM2zNyqZIrakP1bgOYnp4faIY3PtIzQbh49W5nKlIg3b1UdoHRUI// lpYDTB9RjPW1FsrWL9mnDx2D6YYMsM/btSydwF61zqdO/DZO5KxDsdEWK5XFVsH+YSU0 O7sFdWIIK/pfdYKzhND+zAzADEkldOl+fPjxexDjOz93TR3OJ/zq+mg23U7xzGZOOb9s GT2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=ng7p8uEQsgEiT4/xccHokv2a4110PAynaA5YHFbpMeA=; fh=8b+jzOz2r1uo2neUrhcs8vEAC8s07EDZhm5fEcEwG+g=; b=CsQcMfhl5uq1jWgS+f6l7NjgYQB5OV/nky9g3UPxKSVlpJxFidV4jQvY1LhuP1ZgAA FL3M60Ue+XRs5vb7UegatljavTX0omgunlv6MRihlSuBswMAiCaPxmpglCBIyG1kJ/Cz uxMmPllw9MMzQUEcB/fNmDX5Rc1lzkGod1CbKouyeSuas2MDqYdwYJXOaw4bQjRsaIIz Lc2/ZGFa2iMdXUzCBfIKRny0eatcpYncATxTxxp+EX5yo04G3Wrf9Y9FAfSL7RlokaVz b4vUfV5OXFLORk6I+4Ixqy1OC7lVQh5i7nLqCGpqc0y5WsTKR0TStYBQc1MYK5cQ4ZZL D0Bg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rx0She0J; 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; dara=neutral header.i=@linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7bce3238632si961620285a.197.2025.01.12.14.24.41 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2025 14:24:41 -0800 (PST) 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=rx0She0J; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1tX6JR-0002ix-Dn; Sun, 12 Jan 2025 17:20:05 -0500 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 <philmd@linaro.org>) id 1tX6Ix-0001j9-3q for qemu-devel@nongnu.org; Sun, 12 Jan 2025 17:19:37 -0500 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tX6Iv-0006Ya-K2 for qemu-devel@nongnu.org; Sun, 12 Jan 2025 17:19:34 -0500 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-385df53e559so2972793f8f.3 for <qemu-devel@nongnu.org>; Sun, 12 Jan 2025 14:19:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1736720372; x=1737325172; 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=ng7p8uEQsgEiT4/xccHokv2a4110PAynaA5YHFbpMeA=; b=rx0She0JgICXStgVSoTNRrbzTbufO57krtHz+ujrKzUlM4ej6fuuV400OuCbgP0Iiw 6WqSr3+wsASclAaFcga9Ozl7o8ZtFSo8Ma7PZzgDKwUbjT29r1D5CEWijBW4897G2dXB TfgG8c45xXf27vNc7wC8xJrXX3H+r0wH5w/ZprdKbM6MYVfbN4tTr8WfsRbY+/pyHjHB hKxMr1qLPQy5LDdRYq8Tyji6bLyiGe/gfJUm1Qld7LB14gaZSp1JUsB/31J0IkHCO0gC eR8PGan41Wl/SKZpPGdHr/wWzWBgGYHLyyTuahPrUTPUymjOnpEJfgLACEUPsY0/F2A2 jVYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736720372; x=1737325172; 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=ng7p8uEQsgEiT4/xccHokv2a4110PAynaA5YHFbpMeA=; b=ENv9R3GSkJcrnVQiTZyv2kxnZtpJun3ooYAwpfmUu4akgeP+vwx6wlLPCo8L65W8Y/ s0xCsvmV9ekw8Ql8d2LUnqONejGN8fYp5LxPs7l0gBhMhxW5NQAca4e/RxYyfC5pgu5C 7glMIJjte822caUHFev9HtL/R/66/Ii0AF1HSmQBYkGXp95ygDEQ5iv7bD/Mn6ea02l4 eNbqkG7tRRS3btyUL5K0pfih9fRQWgTYUGpJhGnFhwl+3qKSUjp9itbGL8foaSe6c9x+ Q3y+WvNbpTRsLA6XKcyqfAGcINZ7wTML5C8vz9Soa5djPMCeasr6RrQvDT72rzkGdn37 +cow== X-Gm-Message-State: AOJu0YxfZ5UHU0xwfMnrE4y8Scq5A3xJF8pqlFaqf4hT1lQo/a8wz3lP xq4jKgjLoJzKpHKtSQt/gKa3/bhNl9NQm0HBU7qFqXGlsmg8vjZRtZpgwd0zPgZIwWjrit7Djjs OwHM= X-Gm-Gg: ASbGnctqvUc4cJLMrFqTnFERMWAdtoAFR5dmDfy7TjVrP+s/D5c38loOQx2iV1rF5IE Imn9nBT5pWS3lb+XqltNxexsq7b/dRQaaLoEJF5yVhfGK54BI3fudygmqXGVwA0GkYFF4zzBLYS IlpnsmAvsc507+84y11SZJLX1pXwqKPwdnsmfzGDVv7uvclUVvQG2mWSUKSUpu+gOmHXh7qVFLE XJDUQCOdoA7p25T3m/5YqqUHfQxi0tfI5ch9kxLQKTacB09r2g1joBIduf40GWqV8gKwtVD3JDK PD8HzcbJizdweqtAMVUn77JzB3PjCHg= X-Received: by 2002:a05:6000:2aa:b0:385:fa26:f0d9 with SMTP id ffacd0b85a97d-38a87086c15mr17848108f8f.0.1736720371683; Sun, 12 Jan 2025 14:19:31 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e9e6236bsm122243305e9.37.2025.01.12.14.19.30 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 12 Jan 2025 14:19:31 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Keoseong Park <keosung.park@samsung.com>, =?utf-8?q?Philippe_Mathieu-Dau?= =?utf-8?q?d=C3=A9?= <philmd@linaro.org>, Jeuk Kim <jeuk20.kim@samsung.com> Subject: [PULL 25/49] hw/ufs: Adjust value to match CPU's endian format Date: Sun, 12 Jan 2025 23:17:01 +0100 Message-ID: <20250112221726.30206-26-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250112221726.30206-1-philmd@linaro.org> References: <20250112221726.30206-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=philmd@linaro.org; helo=mail-wr1-x42c.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
[PULL,01/49] pc-bios/meson.build: Silent unuseful DTC warnings
|
expand
|
diff --git a/hw/ufs/ufs.c b/hw/ufs/ufs.c index 8d26d137918..428fe927ad0 100644 --- a/hw/ufs/ufs.c +++ b/hw/ufs/ufs.c @@ -1164,7 +1164,7 @@ static QueryRespCode ufs_exec_query_attr(UfsRequest *req, int op) value = ufs_read_attr_value(u, idn); ret = UFS_QUERY_RESULT_SUCCESS; } else { - value = req->req_upiu.qr.value; + value = be32_to_cpu(req->req_upiu.qr.value); ret = ufs_write_attr_value(u, idn, value); } req->rsp_upiu.qr.value = cpu_to_be32(value); diff --git a/tests/qtest/ufs-test.c b/tests/qtest/ufs-test.c index 60199abbee7..1f860b41c06 100644 --- a/tests/qtest/ufs-test.c +++ b/tests/qtest/ufs-test.c @@ -145,7 +145,7 @@ static void ufs_send_query(QUfs *ufs, uint8_t slot, uint8_t query_function, req_upiu.qr.idn = idn; req_upiu.qr.index = index; req_upiu.qr.selector = selector; - req_upiu.qr.value = attr_value; + req_upiu.qr.value = cpu_to_be32(attr_value); req_upiu.qr.length = UFS_QUERY_DESC_MAX_SIZE; qtest_memwrite(ufs->dev.bus->qts, req_upiu_addr, &req_upiu, sizeof(req_upiu));