From patchwork Mon Oct 31 11:53:57 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: 620215 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2763721pvb; Mon, 31 Oct 2022 04:56:59 -0700 (PDT) X-Google-Smtp-Source: AMsMyM73Vv9CZz2b7cTm59yW0RZFzBJ96Sz386UTsSfUNI3hU2hnwZlM3HlWB2lJMbhAtNwC3S7d X-Received: by 2002:a05:620a:400e:b0:6da:dd3c:7ff4 with SMTP id h14-20020a05620a400e00b006dadd3c7ff4mr8253537qko.682.1667217419328; Mon, 31 Oct 2022 04:56:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667217419; cv=none; d=google.com; s=arc-20160816; b=hMAbRzrbopyvktr/fwHlWmNeLD+qg3Dv3rlS4y6BrvbsH7kDSSolHFwdON2UFqyfoM yqcyLRP6gFwNolAIsn4LNwCmk8VY6uRBgOMUqYzP6o6kabI8S53pcTbioOhorIRJSGHB 20Xb77azPaZYpE+f79Oru59yeJrLCCKJQLR/afEtFjn9LDQrL2BcP48kR8ktU7qgIW/n pngPhzVoxGGEQFE08Wy/cfrx5x43b46JSrlp4RNkq0lK/4V7d+S5EgDgiL7CCSbZ8uXr PokqHY38io1RsyeLAShQWi8gvXG/i7sxxaq7ek3DxWxC8dRDuYi86xlswdXAU91aljtq 3dwg== 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=Mqt78t47J2vCxiAvHYahQR0hEHA/val3YfW49MCpoMc=; b=mT5SgrXQcoIaYmSkGnlV8C14twufpLWgMY48TiaB5IeSjbg8zqwz4znhRS4KH1lvj2 NaN8Ws06qOKXVuDOpAjUfX8EcskSh9IBrAgCcaJzXTvQbarUC04h8a9GoPe8V+Wbt7OE F52CU2PtxdByqxyCHOfGkwMcBo72G2Pp/YzVI8TEhOufy0dCVaio34vzUHtw86EgmIxg egHieWtD6HpHndsm9HrSf0cTQeKChX5o1zj4WgvCTbaM3VMKw82K50k2ZZ0LralSr+eq tJiLOi3fPio8Iqa/RePEsW1gwV+MBov1WYZ69pnJmdPpa7dG9gxa23arR7VHHuDP2vLH JLaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nbhwO2gb; 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 a19-20020ac87213000000b003a500649da5si3591245qtp.489.2022.10.31.04.56.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 31 Oct 2022 04:56:59 -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=nbhwO2gb; 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 1opTMy-0004t9-60; Mon, 31 Oct 2022 07:54:20 -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 1opTMw-0004oh-3Y for qemu-devel@nongnu.org; Mon, 31 Oct 2022 07:54:18 -0400 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1opTMt-00055H-EZ for qemu-devel@nongnu.org; Mon, 31 Oct 2022 07:54:17 -0400 Received: by mail-wr1-x431.google.com with SMTP id y16so15571712wrt.12 for ; Mon, 31 Oct 2022 04:54:11 -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=Mqt78t47J2vCxiAvHYahQR0hEHA/val3YfW49MCpoMc=; b=nbhwO2gbJ85PCopF7SzzgNLm/X3y3SCQlinM+OqgmjO2TnuxTY9GSfM1hLyWaNqnJM CkkSx75xRmy6UfllRIygX/whoizI2H2fNpfnioUMNUF81bKLpnL6S2r1TAArBHC3JoLF Ig+BytPeb95H+9Yv5Zrw0PZUFOrPPj5vvyDtEWtpvZJt55oN4cvql3xZc41ddBQrythb GL44TcbQEpND8SXYKXhn1r/DNYVSkdEuCJe1nOliAnsnGe9ua1RDZmbIn1geLb5TJG9H sAGq43/Twfrqlj7clgMjD1OsD0InpEjKeufds0A+Goeu+aJA6P4w/7rzHM88ubNeH5a/ BBKA== 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=Mqt78t47J2vCxiAvHYahQR0hEHA/val3YfW49MCpoMc=; b=0LqTk9PL0KcOccBwWsociA5KfDFSsEJIs0+qSZzk6zlahzDutqw0GZQbKO5xSpsPeL AVRhWaQqNnonHNL3ZDf6VG3FVgNomMDCw176Ku3NTjtpX0W+yc1zIiK89PfcsWXxJ/VX 8PSSSuan/2hplxPCrg13lQpWDbK9ETnzshrjWvWFMnfA01r9um38cRGGNSLHPP55+Iaj ZkDVzeBSun49IjFQAjZPao8HqHK4bII8cWkriiHSWM3j6BIQXDYm+STm36YdHOzKWhKk 6if+MbMLQClbtNEt7Q7d418EovK08Ov5ra9/9r6c6hmbw+5naIEiegtgErfAyfjRP6qA 1x0Q== X-Gm-Message-State: ACrzQf04sq9mkmYJRsTzTjCsoinBYO3Fa0/zEeXVyOPdvKo2te/qZdAB zYqMpgMdxYz2qJKjFFQ19LVZNLuK+Y8ZyQ== X-Received: by 2002:adf:e8cb:0:b0:236:7ae2:918e with SMTP id k11-20020adfe8cb000000b002367ae2918emr7911805wrn.613.1667217250497; Mon, 31 Oct 2022 04:54:10 -0700 (PDT) Received: from localhost.localdomain ([185.126.107.38]) by smtp.gmail.com with ESMTPSA id iv9-20020a05600c548900b003a84375d0d1sm7293751wmb.44.2022.10.31.04.54.09 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 31 Oct 2022 04:54:10 -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: [PATCH v5 1/6] hw/sd/sdhci: MMIO region is implemented in 32-bit accesses Date: Mon, 31 Oct 2022 12:53:57 +0100 Message-Id: <20221031115402.91912-2-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::431; envelope-from=philmd@linaro.org; helo=mail-wr1-x431.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é Reviewed-by: Bernhard Beschow --- hw/sd/sdhci.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c index 0e5e988927..f9c5b58e6d 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,