Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp3614404imj; Tue, 12 Feb 2019 01:34:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IafgEUWY57OpSp+ykQT3xuc2XwPkFYjnn6546C05UnZobUXl+oV26h6VuM6bRHMFxEblXEy X-Received: by 2002:a63:f412:: with SMTP id g18mr2822669pgi.262.1549964090676; Tue, 12 Feb 2019 01:34:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549964090; cv=none; d=google.com; s=arc-20160816; b=uLpRzPrPefYTnuVqn44YUAgpKdREj1n9TzHNrSqymsMQJiy0kFNYGeNHfCKus+pzPH 8cbuXqi5D4p1RUE9UTtHB5YTBpuh/5qO977L9qR6RAhBYuF7C+Be2Y9eJAeF7lD6t4Eu JIm6BZZR8I0JBqV9liOiDcXKXfmPawmHEJtp8WdwhRxRv8k4kPyDrYlavRYMq/cRQt1q iK6JBc4ilZvVv8dnoNicBADO+Ngbk+akH2s6ptyWEUu8MfhI6cyWPmiJRYYar5GpeY5I 4DxV7sWuQKwEDevJ6uj9e0mIaMxFrXoSXY2+ySe8kgbe6apFsEbUv7J2YsLb5uTa02zd MkEw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FgkpX838fo9oz8NedVb0MpKtzZYxkXRP2Z32tbBQYjA=; b=HimmSZj3JWWZ4+5/elZB9GispdrH6Yf8fQDWqkx1T9tHG4xdorpSJH/HY9DXY9H0JJ KRXCxzjb+zRtEdU5RGKi7qYZG4kB4DCBzouepNWCW9bjS5Ym/3mNu7KfTW7pKnLHj9+O PfogBug3IPpIcYpcg+EBs8ktYv0ccujEaclb29IspJUmPO/BpJrutssQRH/ie7JC0fdR D98XdwO7A1TFcwBqZu4hrwv4K5q5brCVzkWSTfvCB7EYsMnkbNZYrVZEQA6x1CaZ+xcQ 9V528DavIlIyCeRGNj1X0awfVL3BSm3rjb2iB7GAIFz61aGMDR4S7d62rEcjQaUru4QF yrOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=waRsQ09L; 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 g3si11418379pgq.61.2019.02.12.01.34.34; Tue, 12 Feb 2019 01:34:50 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=waRsQ09L; 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 S1728833AbfBLJdJ (ORCPT + 99 others); Tue, 12 Feb 2019 04:33:09 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:53491 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726049AbfBLJdI (ORCPT ); Tue, 12 Feb 2019 04:33:08 -0500 Received: by mail-it1-f195.google.com with SMTP id g85so5598138ita.3 for ; Tue, 12 Feb 2019 01:33:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=FgkpX838fo9oz8NedVb0MpKtzZYxkXRP2Z32tbBQYjA=; b=waRsQ09LqsI2iWinAIYUZINqbTBFjxarlOd9+DC0LVysmqOPGKyQZXQevhoZD7ZEhQ XD6QWGVPF9jAVb560JxHn83NKaENr7/kAFe5UF/at8t97HGm2qfLl4hwl+vkY7t6aVEa p5skMV07v/rZfNIddNi1zp6IEh5hCzL4S/raw5qZV0fXiDeF3EZsRA705lMf+8cUP/xy VzfQ3yGG91stvmYNjoj9jqCWXV8xt8kipg929/iDJs4T/Ih4BTw8mDCjIg/k1p0IZGWb Le44pBV/dpOCtn1qBYBzvdVh9cLAB0pL9cSV4SWBW1AramVHrqYdZWcKTlG96mxlrbII mUMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=FgkpX838fo9oz8NedVb0MpKtzZYxkXRP2Z32tbBQYjA=; b=C0zslS57XX8R5MhhbblXYRvVod/rY55OJlHaoKrALbilvDKmUR6pKMn21ygcv/LGSW MpuwD0I9nF0W/v74r5Fy7/M07wYTW5UEKA9I7/cJvKGoaOAuwhdDrBqqif8stNW+HpSO Ndf56NxXW2zgh5AG1GP7PUKVGuO8lNVx7UvNjrvOnI2uywXtPhtNgfI+a/uBlWt8S2DQ L8c+12lOon0iZYCenOZ5L0r7EQZXU4K2n5OXHL/yNlapQQzhMc9+6T9llTxFb3MEB4l1 Y8eX94kiHzuWvdSTRQQaMZLy88hp9RDJz7mfqm8/rGNFIW79q+1K3rkZkzMiFvgsyPUL h09Q== X-Gm-Message-State: AHQUAuZEMhn5ix+2+4pvj+ZA6Z09jZV06eZr8PmHsb/RfUOuZDS86sWQ t3lSIL6wesBtHbLBM0uz9afHROqkInMsrfo09orPsQ== X-Received: by 2002:a24:7284:: with SMTP id x126mr1557363itc.96.1549963987312; Tue, 12 Feb 2019 01:33:07 -0800 (PST) MIME-Version: 1.0 References: <20190211122606.8662-1-brgl@bgdev.pl> <20190211122606.8662-30-brgl@bgdev.pl> <2bf9393a-d747-2d86-f298-5f4cf899b85e@arm.com> In-Reply-To: <2bf9393a-d747-2d86-f298-5f4cf899b85e@arm.com> From: Bartosz Golaszewski Date: Tue, 12 Feb 2019 10:32:56 +0100 Message-ID: Subject: Re: [RESEND PATCH v2 29/33] ARM: davinci: cp-intc: use readl/writel_relaxed() To: Marc Zyngier Cc: Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , David Lechner , Linux ARM , Linux Kernel Mailing List , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org pon., 11 lut 2019 o 14:08 Marc Zyngier napisa=C5=82(= a): > > On 11/02/2019 12:26, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Raplace all calls to __raw_readl() & __raw_writel() with readl_relaxed(= ) > > and writel_relaxed() respectively. It's safe to do as there's no > > endianness conversion being done in the code. > > > > Signed-off-by: Bartosz Golaszewski > > --- > > arch/arm/mach-davinci/cp_intc.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/arch/arm/mach-davinci/cp_intc.c b/arch/arm/mach-davinci/cp= _intc.c > > index c1efb9390655..4bbf0eba1920 100644 > > --- a/arch/arm/mach-davinci/cp_intc.c > > +++ b/arch/arm/mach-davinci/cp_intc.c > > @@ -45,13 +45,13 @@ static struct irq_domain *davinci_cp_intc_irq_domai= n; > > > > static inline unsigned int davinci_cp_intc_read(unsigned int offset) > > { > > - return __raw_readl(davinci_cp_intc_base + offset); > > + return readl_relaxed(davinci_cp_intc_base + offset); > > } > > > > static inline void davinci_cp_intc_write(unsigned long value, > > unsigned int offset) > > { > > - __raw_writel(value, davinci_cp_intc_base + offset); > > + writel_relaxed(value, davinci_cp_intc_base + offset); > > } > > > > static void davinci_cp_intc_ack_irq(struct irq_data *d) > > > > Same thing. Please merge this patch with the one that introduced the > __raw_writel() stuff. > In this case, none of my patches introduced it - it used to be like that from the beginning, so a separate patch is justified. Bart