Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp423251ybx; Fri, 1 Nov 2019 05:44:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwSgU/zYLXbAcoQVr3RJgdPT+0R8sRooggHGUS05dv7gYpvAM6IeHwDnRtQz2wz0qW8swBt X-Received: by 2002:a17:906:fca5:: with SMTP id qw5mr9464239ejb.133.1572612252280; Fri, 01 Nov 2019 05:44:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572612252; cv=none; d=google.com; s=arc-20160816; b=EHz7hI11yQ7BtxZ/V/YqsxQo1KHLKXOTpDBh3/GnpByXps4e7tgkxNT1YZZKNGg5Pf gEc/YXZlbMvdOKFruqzJRzGQuIvglz/oGKY59S4qhixeryJZErKtU1mCTNJ2yNW2XXbh waPpr4rru+OfomBYwrD+PjNSqR/1q0pPK4UrPnFJCw8VwgGmvoKpf9cPHI43/MPuRgpV ICHkL7lwTUTdiUyeMgKUzwOFW0KucSsP04DelG3vH3xsQXkfEjisCnBZsjomGWA0VgfW MEYYBeqweM60hAOmhfTbUrhkU7pwqlBpE+ydRVEykrnfV1nj8LcdlUzVNW95lwF+kUee AAaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=IwcdyWxRDO/TUjQjvqfZVlSTaDYPWlQZLs741mWfW6c=; b=yRUEqAAnCUt4q9i2/hTdDx5tN5ZKJH8Fh61s1IzY5Yn2GWl5WDytwIg04UTPASDhJ+ jD+SwdNCNts5W2FP8HU06QSzliejZ1NTskfllgJHJVXkx5armbW9oX9ofUg3bdM8jOlY DsfubJjNmwZKciI6pcmZoGKsKC1IxjqQ/uQ5Og05Vb/3J/PvzC3k101pCWkfr8d7daVg xq0va8ctvHipcOTA7G91jf7nM5aLeqyqTjL2w/r+oA0UhvQi0b5cn7WL1G+XhAr82IOU JKZoMQhgsBRgttiIe3djrK7hIZY1rI3yJAjwg0Lih3QU3pkwkyMsVNYSk2gfPqpLrfZY RfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EBWLnh2g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b9si263562eda.115.2019.11.01.05.43.48; Fri, 01 Nov 2019 05:44:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=EBWLnh2g; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730528AbfKAMmV (ORCPT + 99 others); Fri, 1 Nov 2019 08:42:21 -0400 Received: from mail-lf1-f68.google.com ([209.85.167.68]:38582 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727279AbfKAMmT (ORCPT ); Fri, 1 Nov 2019 08:42:19 -0400 Received: by mail-lf1-f68.google.com with SMTP id q28so7152307lfa.5 for ; Fri, 01 Nov 2019 05:42:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=IwcdyWxRDO/TUjQjvqfZVlSTaDYPWlQZLs741mWfW6c=; b=EBWLnh2gewMrrOR7Ur4LtjqcL3qopz+JE1MaR/3SxQxLBmY2+j/GbFh12o1lOdzalc ZRBnxmxYZCyK/rBsgZu94RdJDHriGBjSx7Za5We9/D7NfeWht012JDaNZ7n9PZuuewps BAJRmnhCZcl0RMHcCXhFwHJnb4m8Sqwg157Iw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IwcdyWxRDO/TUjQjvqfZVlSTaDYPWlQZLs741mWfW6c=; b=HNUc5+nJjbvMNPbXwgbMrMxtcHkR62T1ZAscoxaCMsrccMNfs0OTiQ5v8XKTPE+cK4 IzgPy54/UXNMTqnu03zdolh8xuXk2xqx4cJLJgz0cNjOQ/9UuypAfGVHXpUM5pb02Bpu ipP2QkPW5Wvj4Gt725hfrldvmOS+fhoLcm85xnZaQZnNSu1L3Qh38TYTvXTT7QqdSnNK jMI3Y5UVCUr/YPSdIKNVCb+Y1BLvz1UCoo3PN9sBuIgE7HSRh7H85xvy1g4rcy8tSYSU /LOBp+A8/RMt1gPqP+Z5kKlsDpqldnfqL67UkLipajvW+TBEjLrPcskGemFxiVdFWLzQ /ebg== X-Gm-Message-State: APjAAAXajaw13zJaVtTujGb9r9EPp4Gu7VQiu6OdruHlUdA1qaXGlXh6 jiuOZwLcLiav1e0BU89th+ejWQ== X-Received: by 2002:ac2:5295:: with SMTP id q21mr7028523lfm.93.1572612137175; Fri, 01 Nov 2019 05:42:17 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id o26sm2458540lfi.57.2019.11.01.05.42.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 05:42:16 -0700 (PDT) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Rasmus Villemoes Subject: [PATCH v3 02/36] soc: fsl: qe: drop volatile qualifier of struct qe_ic::regs Date: Fri, 1 Nov 2019 13:41:36 +0100 Message-Id: <20191101124210.14510-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191101124210.14510-1-linux@rasmusvillemoes.dk> References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> <20191101124210.14510-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The actual io accessors (e.g. in_be32) implicitly add a volatile qualifier to their address argument. Remove volatile from the struct definition and the qe_ic_(read/write) helpers, in preparation for switching from the ppc-specific io accessors to generic ones. Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_ic.c | 4 ++-- drivers/soc/fsl/qe/qe_ic.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index 9bac546998d3..791adcd121d1 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -171,12 +171,12 @@ static struct qe_ic_info qe_ic_info[] = { }, }; -static inline u32 qe_ic_read(volatile __be32 __iomem * base, unsigned int reg) +static inline u32 qe_ic_read(__be32 __iomem *base, unsigned int reg) { return in_be32(base + (reg >> 2)); } -static inline void qe_ic_write(volatile __be32 __iomem * base, unsigned int reg, +static inline void qe_ic_write(__be32 __iomem *base, unsigned int reg, u32 value) { out_be32(base + (reg >> 2), value); diff --git a/drivers/soc/fsl/qe/qe_ic.h b/drivers/soc/fsl/qe/qe_ic.h index 08c695672a03..9420378d9b6b 100644 --- a/drivers/soc/fsl/qe/qe_ic.h +++ b/drivers/soc/fsl/qe/qe_ic.h @@ -72,7 +72,7 @@ struct qe_ic { /* Control registers offset */ - volatile u32 __iomem *regs; + u32 __iomem *regs; /* The remapper for this QEIC */ struct irq_domain *irqhost; -- 2.23.0