Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6878137ybc; Thu, 28 Nov 2019 07:02:52 -0800 (PST) X-Google-Smtp-Source: APXvYqxt+3KKTR0ejWE4aY5JkKUvUilcJ4YrD12NCE92YLAmZHBu0lM2Da+f+RPfqNEllkJufweq X-Received: by 2002:a05:620a:133a:: with SMTP id p26mr6759537qkj.50.1574953372038; Thu, 28 Nov 2019 07:02:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574953371; cv=none; d=google.com; s=arc-20160816; b=0dNj55zbIV121DfThkJFLZb47tO9Giwk+jhlH87pfCuM3F0hZ7rhY6PMVEwjJbm2dT M6RHf3IIE+qAUzQ2GiJ4cts4NU4EdrhkbxjkSsxLTxnitdC3bhiXhXTH+RlMnj2OmISP LT2pXE5enwZ7PDcnONxrVueKmdBd9eEArSrMsZBJdikcof6BFX3rOJVL5sW78tYe8MQ9 LJtTbJLDNIdj7OtvrACS594kd+V8J9KIWdDzY2h96Y4nzpShBbQAOvwWnh64gFMWQ4fP ekXdvCBegQXheP/tz+1UzB6O4VdX5ZrjZNHVVD43drucI4eVtkaGffX0W+H6eWUEm4x/ R82g== 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=xuBpN3zboz9lWIykWwJc5jpgUtQnVYVpKGpTSAHe1mY=; b=KPN3g9Dk4YHwQ91gBbY3Gy9Btb1GjIayfquFcOEdxfv20KA1BkPoc5mYDPJU4cgr5P iJp6mKQUEAI/E7HIZUDDvdU1/8dwtqm4jdJdHkRkL3ZuFySLMA2mzNgEz1Sz/q+VnF7N F7AtwYJJSoa38nkxR/zpb4Llywf2QRVQVE8g9tDqa6i5nMIfS+V8jUoocNf/gNFNqQ63 slQnwMOsHsid6R3VDMo8I7xOBQhC0Gcj+y3yyON2Jzs4a2K1V01ecfAwao5nvUyyUdM2 udTUJJQYM8c2Bfn3X7dpf2PkY6Y3k3z4LVyQah43qp8zct61P3cZv+RV0LNykFwfK19p 3IHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=LBLkpB93; 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 s24si250362edi.372.2019.11.28.07.02.26; Thu, 28 Nov 2019 07:02:51 -0800 (PST) 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=LBLkpB93; 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 S1726968AbfK1O5K (ORCPT + 99 others); Thu, 28 Nov 2019 09:57:10 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:37401 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbfK1O5K (ORCPT ); Thu, 28 Nov 2019 09:57:10 -0500 Received: by mail-lf1-f67.google.com with SMTP id b20so20262812lfp.4 for ; Thu, 28 Nov 2019 06:57:07 -0800 (PST) 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=xuBpN3zboz9lWIykWwJc5jpgUtQnVYVpKGpTSAHe1mY=; b=LBLkpB93pVGXgxOwmejvEDGNQ0wTX3sXVZAnOcyd8gmKFnbh6jMBjoDwjyb6YvDm4M XHCCmFN2eUGOVTINPAhI11+JlyAosCHBv2LK/vtsY+G2dWLFaEQSZ4Exo/mFOK5UMZLJ 2LQB98mHBLqEsF/KxdOGUYnhPx8t8XlV/3yeA= 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=xuBpN3zboz9lWIykWwJc5jpgUtQnVYVpKGpTSAHe1mY=; b=Jsy3Y9R4+I1VmyfcF0YfI5a3r+xwkP8i0LrfiYfJSusbE9WvIVyMMPxNJWkPyWg2le WIf0ucs5s77PxZxfZ3KY4Hk7tObIpezPZVthhtiOklFrRZJV26z9TwNwtofYTfPMkQgz vwqHrxMHmuIBF1iIgVeqcgYoogy0eLlzyt0Vqf4D4zBjeksyCcLYn5L6LOTKhxr12Dgi BMEBeItpUHWdD4nHRZ0Gk6uCentgocpl0Ndz1CKLwY/82+MM/5eR9rw8EmiByUWzCapx uaPR3ApkhMLQmN+qOBqyyVZu4rAD6BpL7wtXK1JzpTk+flJk23iZdqSgscfK5ZyxNTmX DCMg== X-Gm-Message-State: APjAAAXw6P7Sl/bh5JGVqyrYiBiaQfBBgqVDu9qcDz2zepn9dvwcGANn WmUhTO/DtPUgBAmKPxFA7K+yDA== X-Received: by 2002:a19:e20b:: with SMTP id z11mr32438202lfg.171.1574953026680; Thu, 28 Nov 2019 06:57:06 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id u2sm2456803lfl.18.2019.11.28.06.57.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:57:06 -0800 (PST) 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 , Timur Tabi , Rasmus Villemoes Subject: [PATCH v6 02/49] soc: fsl: qe: drop volatile qualifier of struct qe_ic::regs Date: Thu, 28 Nov 2019 15:55:07 +0100 Message-Id: <20191128145554.1297-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128145554.1297-1-linux@rasmusvillemoes.dk> References: <20191128145554.1297-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. Reviewed-by: Timur Tabi 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