From patchwork Mon Oct 31 11:53:58 2022 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: 620213 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2763485pvb; Mon, 31 Oct 2022 04:56:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6v5uTVxoQlF+pJO4vLxZ2Dg87eh5ORrWWjT/pwSwb5v1prxA9P78D6gipl2S1oz0/VPJWW X-Received: by 2002:a05:6214:262f:b0:4b6:89bc:3ba4 with SMTP id gv15-20020a056214262f00b004b689bc3ba4mr10314250qvb.44.1667217391841; Mon, 31 Oct 2022 04:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667217391; cv=none; d=google.com; s=arc-20160816; b=BENMAdJ799VIPOwo3iD8C3FImVWVZQBYGcV7ovkmkgWN09oM1m12ibLCskHjcoPOJp H7B6+2cmLg0aTExPZbXf6wnzpSQUHH9gRRfh1q/KYP5m6X4ZcSCC0gDmpR71Mq+4iWw4 1oA1aWTpdT1+VQBZL7Rn5XP1z7zOv5YMtV3Qyj+DawP6QGuBDL5gFIf0UpgcoAtTSkB3 2WxcUpKnt+z7W+gIZ8E1aQ9FLXl5zljpZ4wr3usFE2uPV9vZoZn2D8f54xTUa7JjfJ7O euviSwrGjFkyNERZXcxMPt2XRGX5eWKVUaVrD6nPQUgM11ePWEbsd1c1XMDB4YTj0b/b zSLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender: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=37rpDi9RI9hPWc9AWLWhs9sb9dymPc7fADlcHGCKa94=; b=P/BxzDcgRNJPD6BzMFRktE5xdDK6HoO/qu+lwDmhsPxqqHxG4bEIt7x5qBneMbgnFc kvN8PaS2hBaTcnnmPGH7NutdY6pM9L+DKQFY0Y1jThq2caplVdWPK7C8gObWEHcrH7Of DkFLl9DxMmgYqEAZ8ryQa458n8XB9G3YCNdMpYpXlDOn1y1ZdkB6yW5SCX+rXTXlGjCZ y+XQlLc1dDanwnWKtUG5QVgQ1gsHPeQX1vkbo6GoQVplh5GMNYo6VwvwZIqawNwodzOJ 0r7GugOm4ZGlhV5ETtlxb269ED0JOGmRqRJ+P9S/ftYEX+CpsyQ3mAL/0XmyK/S700EN E7Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nyUvbVm5; 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 ke15-20020a056214300f00b004992191be14si3658174qvb.30.2022.10.31.04.56.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2022 04:56:31 -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=nyUvbVm5; 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 1opTMz-0004ux-A6; Mon, 31 Oct 2022 07:54:21 -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 1opTMx-0004rU-F1 for qemu-devel@nongnu.org; Mon, 31 Oct 2022 07:54:19 -0400 Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opTMv-00055b-Sn for qemu-devel@nongnu.org; Mon, 31 Oct 2022 07:54:19 -0400 Received: by mail-wr1-x42f.google.com with SMTP id v1so15591136wrt.11 for ; Mon, 31 Oct 2022 04:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=37rpDi9RI9hPWc9AWLWhs9sb9dymPc7fADlcHGCKa94=; b=nyUvbVm5gbNI6MfmRQLdedJW6ffvOYyA4xIkbOTQx15Vz/V6jKQhpXfec+ciZbLnNe fLTCxJOBUu+ytYVOAVlf+YDHlHH/fQXWGLl/N0HkPdJsnmh41862VL1IFt55CjlqEcV9 p4fCom4Nf96T6UV/tS4aIqV25pEP1ruLL34RHGP33ULEkdB7A0LOSm6A3APPO2WIpEnt qMfh8XG+BXqyv8Sj55683jNuyFCe1U0ksCVNwbXnG9f+HzeIOOtrE6kOKFOndxHyDo7E neY5TvrJOw8aoMqndQ7r7eXV8jFdBEtGZ2gLQQu7pyzpF+yI5mu1dGjoYCZhBLEG5eAv yjdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=37rpDi9RI9hPWc9AWLWhs9sb9dymPc7fADlcHGCKa94=; b=WJZSnwIDLXC5Ru8RMm/paM0J9p2e8KR+lIRtuvtBL3IJTHsbK+wgqAXtGaBtR+Ou0B KKmZHcanqVfzCV+YaeB8PTUQFn+RcB64dTdUJCbX3IViZgT1PZoFL4ZiVPea98gQNWJz drZLbLU5AmCdCfkqSzOR+B3/FueqIMpi+1ZM7Lt9Ukb52JLxzKOZc99vIoNfc7JAXcTp EjES+LJH2XwpfMT1NBvFS3YUxDhn4nU3uT2pjFzSAU4wMjVKT1zJ1cQYUNzOd/+Ef5kT JGU2STCFo3GrBE9bR0xuGV0hv0v0DUxVpJBZEbJ6GHSDKWW4g+vWbOTqElygJIdlQp4J a0uA== X-Gm-Message-State: ACrzQf2ZqsdO+pDZN3JogEbJHiMHXBoCCENyhD55bbwgiVm7s3t0rC1n wen1Y6Ll20G2uaCh51qAJJqr/fFmimETyA== X-Received: by 2002:a5d:6c6b:0:b0:225:dde:ab40 with SMTP id r11-20020a5d6c6b000000b002250ddeab40mr7828685wrz.690.1667217256025; Mon, 31 Oct 2022 04:54:16 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id fc6-20020a05600c524600b003c6bbe910fdsm8260671wmb.9.2022.10.31.04.54.14 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 31 Oct 2022 04:54:15 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Bernhard Beschow Cc: Daniel Henrique Barboza , Hanna Reitz , qemu-ppc@nongnu.org, Bin Meng , Kevin Wolf , qemu-block@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [RFC PATCH v5 2/6] hw/sd/sdhci: Map host controller interface in host endianess Date: Mon, 31 Oct 2022 12:53:58 +0100 Message-Id: <20221031115402.91912-3-philmd@linaro.org> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221031115402.91912-1-philmd@linaro.org> References: <20221031115402.91912-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=philmd@linaro.org; helo=mail-wr1-x42f.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: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index f9c5b58e6d..40f37694d5 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1341,7 +1341,7 @@ static const MemoryRegionOps sdhci_mmio_ops = { .max_access_size = 4, .unaligned = false }, - .endianness = DEVICE_LITTLE_ENDIAN, + .endianness = DEVICE_NATIVE_ENDIAN, }; static void sdhci_init_readonly_registers(SDHCIState *s, Error **errp)