From patchwork Tue Nov 1 22:29:32 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: 620461 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp3885315pvb; Tue, 1 Nov 2022 15:31:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XxEK5djOOaEuo/R3k3crLrtddo/I8fuwt1WKFq8LcuaqkiwhTGoLv3PMq7EVJHNcncFi5 X-Received: by 2002:a37:b502:0:b0:6f7:65f6:a95d with SMTP id e2-20020a37b502000000b006f765f6a95dmr14978083qkf.712.1667341891103; Tue, 01 Nov 2022 15:31:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667341891; cv=none; d=google.com; s=arc-20160816; b=eeIorIcXcBK2C/4UUcaN+8eM4W7akV8Ra3py0MCh3gp4cU4XNZZv23szkTQEO6r1Fr f0BWXe8hG+U9TXbeK0uWx2060+veISKHG0Fvm4W0ATWuD4ZC1aEl41ONWe/SYjLw/Q6l nlDyFMkx/nrPuHTBMxOZE26olLYoLyD/UuEH+XiDMkDZRjhU1AsaCYZU7tedNqPLuR2h 0OZleYVPg0LeCZ0u4zLAacb5wURY6R1F35zQnnhDDb/nu5vr1bF0R4TUl2e19pg/uvyZ 1ij+kIIAegx6NZQNUIqp/rpYwQPpnM5HOpAtHPbvcCQOicl6SJUws1E9m9wyiR0gK1Gm f7Yg== 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=iymhNZLF53NrqTp0QR9MiHOgmBR1A7K6EW0buIZrzQk=; b=EsDx5MSgVMih2TSdRu/ATWsXTPX4snEG0L2DJktL/h82HIL9dlbjNLC0BJZJfa5yMW sTdahoM0Lu3/mwWqj8fpQsEik4FYt9ODrGTS2AN86jwHHgqqBwD8Yt7Jmu1yLfVxTvUm xXgZq2Ze2BSoy0pBE2fKy63tpRCjNDjbjBSQIX1vFuhMGqmnsR6/DjqRRmqHisI7cPvB hX1PjD/2mIffuyz1L8uhqu4bow8wV7Fc53G/oD7Xszqw4i1VEk/2t/GRo5PW+GIue2gw eoEfrJtDfKE6slNlST8n55OGJ4XURb/x25AHaUlwVTMBPYdpIxYBDhBjGChi0MuOZwjh 0m/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZdPzG6fu; 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 ff8-20020a05622a4d8800b0031f0b5c9c83si6967194qtb.514.2022.11.01.15.31.31 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 01 Nov 2022 15:31: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=ZdPzG6fu; 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 1opzlV-0002Jo-O7; Tue, 01 Nov 2022 18:29:49 -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 1opzlT-0002Im-72 for qemu-devel@nongnu.org; Tue, 01 Nov 2022 18:29:47 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opzlQ-0007YS-O3 for qemu-devel@nongnu.org; Tue, 01 Nov 2022 18:29:46 -0400 Received: by mail-wm1-x32b.google.com with SMTP id m29-20020a05600c3b1d00b003c6bf423c71so233199wms.0 for ; Tue, 01 Nov 2022 15:29:44 -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=iymhNZLF53NrqTp0QR9MiHOgmBR1A7K6EW0buIZrzQk=; b=ZdPzG6fuw2tvcDbcpZjneipZuRZcOFDIUB5eD2dyXbauCfB1CadwoJ6VgS8FX1hxm+ lTYCn54EmH6SC1TvRB5LkSlaNxAD/KZNugk/b4G6I8r1HZqr1E4sSQ9s8Jt3bKtyCTEX WoWh1NfFE3RtykZqw8r1q5irCb1MobEdUti071kYQAO9I8D/IMVTVvncouA59++L8Vdq lHGGibscv+8zaCOYVpTjbnDvWPt/6BQ2Conul8pswdWY6Fa+hBh3saMnHjvhe5xa9boN 2/tQ6+JU1sacI/9l/y2K51dovULa5oOZBjSFnLDDShR93j9W2+dXb+xMaEqpVN7hP5Rp Tw5A== 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=iymhNZLF53NrqTp0QR9MiHOgmBR1A7K6EW0buIZrzQk=; b=eMUugONQC+gtsAUJIAIYUyqFA7tAcrO+JMQXuO4ngfFhsOUqJ2GjWgKEyGtJLX+tNu 4g8oUcqY9OXiBvkFTlq3w2gqfzWcp5sU+efeGcEMZ4aFFgujdNHbjnIWp3ANtSubjH6e cICS1AILRYRuugrmLB32Vt/wH6mQqHJgQU1KL9dlCOV0AlTk4iPxETnif/S2EteSJOcO S2qfEgeFJFnBDJIEhFBwUVNl6KbzjSGc2J2AAnNl5KoIY57Y/qAh/GKR76QK9aI8RMEy K42os+3640Ps/SSeW5yT76bgM6N4ei2wU6Hxa0YFaetoy7tBl5OXNWqKYXyxO3iS8o91 CJUw== X-Gm-Message-State: ACrzQf2FpoXgUNUY5BWYFJoJQA3DBo68X2P09/2Zh0moTiKPMuHF4hUk AINM1QGtKkqF/1/c4mIQG7QpMMjRxz7l+Q== X-Received: by 2002:a05:600c:4307:b0:3cf:85fe:4d97 with SMTP id p7-20020a05600c430700b003cf85fe4d97mr49199wme.89.1667341783073; Tue, 01 Nov 2022 15:29:43 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id m39-20020a05600c3b2700b003bfaba19a8fsm25504wms.35.2022.11.01.15.29.41 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 01 Nov 2022 15:29:42 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Bernhard Beschow Cc: Daniel Henrique Barboza , =?utf-8?q?Philippe_Math?= =?utf-8?q?ieu-Daud=C3=A9?= , Bin Meng , qemu-ppc@nongnu.org, qemu-block@nongnu.org Subject: [PATCH v6 1/3] hw/sd/sdhci: MMIO region is implemented in 32-bit accesses Date: Tue, 1 Nov 2022 23:29:32 +0100 Message-Id: <20221101222934.52444-2-philmd@linaro.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221101222934.52444-1-philmd@linaro.org> References: <20221101222934.52444-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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 Tested-by: Bernhard Beschow Signed-off-by: Philippe Mathieu-Daudé --- hw/sd/sdhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 306070c872..22c758ad91 100644 --- a/hw/sd/sdhci.c +++ b/hw/sd/sdhci.c @@ -1332,6 +1332,10 @@ sdhci_write(void *opaque, hwaddr offset, uint64_t val, unsigned size) static const MemoryRegionOps sdhci_mmio_ops = { .read = sdhci_read, .write = sdhci_write, + .impl = { + .min_access_size = 4, + .max_access_size = 4, + }, .valid = { .min_access_size = 1, .max_access_size = 4,