Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4089226ybg; Fri, 25 Oct 2019 13:09:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwsIm/6V/pF84M0WwAY/n9WOEny0IsFyQxOcZ1aLwK21FFWH9nxncWw2KUqp3xhWT13LwNF X-Received: by 2002:a05:6402:386:: with SMTP id o6mr6164428edv.148.1572034184407; Fri, 25 Oct 2019 13:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572034184; cv=none; d=google.com; s=arc-20160816; b=OfJ0FppvLFwgWxqsy4EmmEv2DtC7hZfkuCqt3bH91v2WMo+a2Dr/pWLYk9/frLFGDf j9CjPXDXCvp3xh+qmhs1NI+w0GXd8lcYGJrFG+s4ZLZdxw4yim90o0wmZ5K99Fhswq6v SzRcDjxI+J9czhPB/9iSku/395U5pX1+8CrieXaog04adp7QnUZu/259rXqENvHTiEQO 2bHpnu2uMk1CD9RF7UTBHe7YDzp0FybhSOTg+3Rx0oFZ9+ClAs37K/as1KHsFMeCyN1X Dpj5WEHrYtPjn1cpKZ3kgxjBYP1IxXFjOvJWPBXDj//Zl1yFzyiwwch641Y+1/n78jp/ qslQ== 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=jXnaCA3OuhkSqY0ql25Lp+7nkCfIp6LPnaMxQ9jsYdk44QShjxRv9PRpZ8LU3I/SfI EP7DmfCUh8ONe8ijDqY/uHXJWlIIuGgYaMXp+6mmFNQP6u/qa2F1/HTLe1bNAA7f58Yf Rm63O/c+qQobesXYTEBcrlQdYUYSXsNlKKhVT+8jkM7hUCen3aZfBZNNkR/AOjlsWbLu BZoMxiDhF0PNArhmlG9rB1Vh72k8AJV5VKTDqnDTUjrIZoIDj1NsLGhm0uSTlnm/gyzE mnvpTulNCN1e7cd4AFiJyXL+Ovi0B2DQQZ7Y6ZgiTmffmeVkLpquyOMbKJ41JQ741OP1 djcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b="ER2j/UqV"; 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 f36si1891763ede.159.2019.10.25.13.09.20; Fri, 25 Oct 2019 13:09:44 -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="ER2j/UqV"; 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 S2440302AbfJYMlK (ORCPT + 99 others); Fri, 25 Oct 2019 08:41:10 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:43858 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440295AbfJYMlI (ORCPT ); Fri, 25 Oct 2019 08:41:08 -0400 Received: by mail-lj1-f196.google.com with SMTP id s4so1662424ljj.10 for ; Fri, 25 Oct 2019 05:41:05 -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=ER2j/UqVSwUAHLo4Mrnww4RdyHncxOt+lyD7CK40XfpSeF9zh46mxSVrXefq1dbdQq SK4pLpEx+99DSzB5FVd7ww025gdapgUXdzjPaYkwswtuzB6r0p/cjvuKl9Mra2EQzJbT Y1X9gx7BA1Twme6NVkPv2WJNBYSm15HQ3WcTM= 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=qlpzXNDDVgXbDH6Dq+nQz86It7KbdO2w2AXtysxk4qikYO/TnvORAM+EoHr1mazW4Q Tcb4nMmhqoRERI4xwW1qcH7O/8g5/rCPsGXOzopmrKYEBgximcbvKL18PZhESUG1ev/Z Kslis5eOWPngC7wDU/NJ5c27x8g+k4F8J8U1ZJnqTBuHz4oXrsXiDrZP3a69lOc2Zad1 N6yGybeyg54+caWopHQPF0hnjyT8SkLDrxuwqd1X6NN+1/jvBZlR/Wc63cazY86KldjU X9KsUfaPoKiKZlxy5QDtE6o2AAvZAQYWAamBygFZCKZpjw5mB92ke/6WsA3MWUyhjm4x q4xQ== X-Gm-Message-State: APjAAAUQRKlDb0iQj2dcDjD7jtrzKQdcuAo40o2jCmvRhy1IDe3dYdTL oHqXDvatv1C2kSJySEfycTdTdw== X-Received: by 2002:a2e:8652:: with SMTP id i18mr2441361ljj.86.1572007264655; Fri, 25 Oct 2019 05:41:04 -0700 (PDT) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id 10sm821028lfy.57.2019.10.25.05.41.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Oct 2019 05:41:04 -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 , Valentin Longchamp , Rasmus Villemoes Subject: [PATCH v2 02/23] soc: fsl: qe: drop volatile qualifier of struct qe_ic::regs Date: Fri, 25 Oct 2019 14:40:37 +0200 Message-Id: <20191025124058.22580-3-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191025124058.22580-1-linux@rasmusvillemoes.dk> References: <20191018125234.21825-1-linux@rasmusvillemoes.dk> <20191025124058.22580-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