Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2138171imj; Mon, 18 Feb 2019 00:16:09 -0800 (PST) X-Google-Smtp-Source: AHgI3IY+B6ADUvEWPOKStRUvOJUWa30LS9K9JIDyCh3/NoMe+tdGVf8pLcXtgnCXjU2sFPewJeZX X-Received: by 2002:a17:902:724c:: with SMTP id c12mr14336610pll.110.1550477769318; Mon, 18 Feb 2019 00:16:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550477769; cv=none; d=google.com; s=arc-20160816; b=OJyeMCZI06r/GskSVGHvuBDQqysT52MNj0/R03ZkpEh7Kd2+x4ok8TypmHGJJWKUtc PWYUSsnTSHUyN73P3XwYxS7encJCWhgpIq6APYSgWhPsb77KE2P/zGggd1+avjVOGFV3 Qpp5D1qaVaJktegz60ygoLDskuF2hvrG8icCqspUxekqHSjcC3cQP6AYxYsgdvmhMDaJ DZ8ozl74BGfqmvwaSqiDm2C6aK9ofqOva3BB/VO19wdd9LPGNwPsqOgEpmCjFcS09dI6 M87s7baq71+vkJ/xfTpt+b8FGTByyZgyyLmsWBD34SMwtejeYV3K5PcPSofLlJDBeUBM 5psw== 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=A/GWwL8QsoA/seKkkwP2J9Rz4+w3VPL6GFqZWoskLzA=; b=UqMNWf8OrGd3bgW/c6rlclVwcADGF5OUMrFVshFAtF/Woxtx8/r8FRExtWN9oA9Tzf Ic53csYg04Guh6SJoadCIEJwiVTwRo4yECkCiFHCDyNn7hVhWtMrOlR2lFPHMK/xxUDh W5pb/f7odk69XlwK13ljIec9mZN83L/Wi0IAOf63enZkzfbDB1eN51skXpjJhgcXM/I4 J248xPxOTqf3j59Y0FAnNV38RWY4Pq7nIgEoCW6j5YlsD7C1N5igtSJewxAh+EsuYSLJ hH7Dr82Ei2MWf6ctLxLLcSOiakDZjs5WQeVIfiLcyCrI4wAN4xVLosKYEsQIpYqZ0rk4 riGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=UVPP6vyO; 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 h3si12923861pfd.250.2019.02.18.00.15.53; Mon, 18 Feb 2019 00:16:09 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=UVPP6vyO; 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 S1729121AbfBRIMi (ORCPT + 99 others); Mon, 18 Feb 2019 03:12:38 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38423 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728976AbfBRIMf (ORCPT ); Mon, 18 Feb 2019 03:12:35 -0500 Received: by mail-ot1-f68.google.com with SMTP id m1so26875130otf.5 for ; Mon, 18 Feb 2019 00:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=A/GWwL8QsoA/seKkkwP2J9Rz4+w3VPL6GFqZWoskLzA=; b=UVPP6vyO6mqbqmeag02MDV50meAuUyc/reRiyqD1HAshwhNPf9m48CWFS4i3Rr9vO/ BpNN6Njm93uloF2GJG9SIM2gSBDEm6FlB1ashfnnP4Ok7i3fPBX4q8sZII/qgvzwZsP4 ZqTK6tGqVw76f0WNbdW+Mzo24B7GwYgAH0fsMTfZYFb3AcqFn+ItpQoWaTKNfhBwUNeD HL6/B/x7tJAeGQmUy9/6+RYdW96hMUoBBOwFmMEBJg78mWEAL/q/wwS8mpfuC8JKOS5I phd4wECfsq9dVBSuUhnSVV77/6dyNitmUM8ssZs40jXA79dRSkOapDwzTiY8zy3nAVRz Xipw== 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=A/GWwL8QsoA/seKkkwP2J9Rz4+w3VPL6GFqZWoskLzA=; b=Z7xL6MgHDj3j380EupQVFh285hSMCkw8C583dLJ+wdbDuW1Jmjv0tpifltVe84T+IL 8vC2ckrmqNb9gRkRDsqXj+HVNAMhIaMC21ZzhF3IRopAwzA9q+roSDcNMjyzJXKd33dy Rkz6Toi/0i26trZfrxQ+ooFjcbhRAuE6s+H1NXqHgPGYlmFbkArocthHKRHCEf2uK2B5 i/jtM+JDaR2OiprNP0nHxuA25HLiy0sqq6ThXrlG4AXxBBQujrSSAFT6VWu/BC7GwR+/ lFY1jXJ7oOGdQSZ7eYrwHtaqFN1jCyDk3aMxHXFRx1hgMP06VUv5jjDFd5KXscxXzrEP D03g== X-Gm-Message-State: AHQUAuYmQBdmmiKITxEGnkUDBfC7npclGWcU62Yw9F6nIoOPftallAeY Vhjsb5I2LZRB6PAS7qKSf11CNgvynKurzVV4wQRf2A== X-Received: by 2002:a9d:635a:: with SMTP id y26mr13090952otk.27.1550477554190; Mon, 18 Feb 2019 00:12:34 -0800 (PST) MIME-Version: 1.0 References: <20190214145231.8750-1-brgl@bgdev.pl> <20190214145231.8750-34-brgl@bgdev.pl> <681a7831-8c20-d634-a1cb-04064e3077b8@lechnology.com> In-Reply-To: <681a7831-8c20-d634-a1cb-04064e3077b8@lechnology.com> From: Bartosz Golaszewski Date: Mon, 18 Feb 2019 09:12:23 +0100 Message-ID: Subject: Re: [PATCH v4 33/37] ARM: davinci: cp-intc: use readl/writel_relaxed() To: David Lechner Cc: Bartosz Golaszewski , Dmitry Torokhov , Sekhar Nori , Kevin Hilman , Thomas Gleixner , Jason Cooper , Marc Zyngier , arm-soc , LKML 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 niedz., 17 lut 2019 o 11:01 David Lechner napisa=C5= =82(a): > > On 2/14/19 8:52 AM, Bartosz Golaszewski wrote: > > From: Bartosz Golaszewski > > > > Raplace all calls to __raw_readl() & __raw_writel() with readl_relaxed(= ) > > s/Raplace/Replace/ > > > and writel_relaxed() respectively. It's safe to do as there's no > > endianness conversion being done in the code. > > Should this be combined with patch 14/37? > No, this is for cp-intc and the other one is for aintc. I'd keep them separ= ate. Bart > > > > 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 1bf11fa8be76..f88b7f0978aa 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) > >