Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6629611yba; Wed, 1 May 2019 16:43:02 -0700 (PDT) X-Google-Smtp-Source: APXvYqwNSg+Qp1/b/DlDCcIcUw5E1pinnyi5IhkUMc0r86uDMPh+YjM6azXms0OelQFKVOOeEaU8 X-Received: by 2002:a62:be13:: with SMTP id l19mr704817pff.137.1556754182270; Wed, 01 May 2019 16:43:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556754182; cv=none; d=google.com; s=arc-20160816; b=LjtsREEfAJOqZ/HgmdX3znERCJ2jqECFqZsa/JaFgIM/H4kTDfr9efwOV8uoBmCPsB +8RwZYSLAg31dfJw/WzC1oxcKfamssy9IpIfpIV5oPYp2+sYvzitU8tvqmNIj6Y9fceO zz1X0SW0KMXwrXHapuJzyWpJ42A8QdILWu5cMeIKnqqiZtmN7zJgJKAubWha/x/Fj7wA Nd/Lkw2JIMk3UaVvubem9Ecoo/oBBtEuNzQU5xrZMQXYw8/zp4SLpxMNnJ8qb7tOI1No Xn8fhDDmDSDqlyarI/3CunMwd2cri4pysjns/eAiTzVORwo2+hxDpU5UkA5clfeDtQkR sxEQ== 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=MfIFaN/cDvep9inRd5PqDA7WzNgKemRCq9lkW6WG194=; b=ugLZ8oMZFll5K3j/bhqHeCDt2uiMiqBequ6pXxxgTre4OJcGx5pY93eemdAVCxDzi+ s8E82Oav9bRw7N3Pz4PySLyARpVNWTgcszrJVuAHrvPnL9eZmuk72IAdErMsSfONtsJ/ RlT4mVw3OoiBcQ6fwvWDBRUKPWs7sRgfMPP7pq3gzwDaXMmGFdOq4wTaB1LzOfnOE0n8 eQftzS3eMM8ewj+8wVQaExqIxAfjl3DY0FO69CSFVExTUhYzvkgUuv5yDSTDKcMITwgY co4om8Z35EUv69RzQ3HHX6AuRbFh72LXQHcyvt5lBsl8yTWz84J0Ugnzr78zLkfQyIeY a6Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=P99Zqlgb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i189si7028830pfb.41.2019.05.01.16.42.46; Wed, 01 May 2019 16:43:02 -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=@gmail.com header.s=20161025 header.b=P99Zqlgb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726303AbfEAXls (ORCPT + 99 others); Wed, 1 May 2019 19:41:48 -0400 Received: from mail-it1-f195.google.com ([209.85.166.195]:39662 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726126AbfEAXlr (ORCPT ); Wed, 1 May 2019 19:41:47 -0400 Received: by mail-it1-f195.google.com with SMTP id t200so344825itf.4; Wed, 01 May 2019 16:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MfIFaN/cDvep9inRd5PqDA7WzNgKemRCq9lkW6WG194=; b=P99ZqlgboRhF5XRuOsWm7jgTy8cXOLjBRBMlWO1S2cywGUyFPKzXjMqraXVShzSn/g PzXZWH97KzfulgOF5TYJOF9akbfHDpBVbznDW5Axb/6up2Qn+4UnIu6fBfjkF/Q4Pkig 9E6NnxdF+MPJTe0dvm5LYH/aotHHgIMSLCJudM1ryUqbsYeDhpkL/hH4BZTV9XOEX95d cIT2rJFM4RAQd5Z0sD1u7UMJ7e6GtEUm8hO8tzNZUVDimQXU4o14WsKkwNw+KOWXo0/x dJ8u4vv1txC+N62qGwm8GaXq3/uaEXlLeL+u2j8vD6V+rqPAqYXJ7LP6pwhCMuDrGmC6 BzQA== 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=MfIFaN/cDvep9inRd5PqDA7WzNgKemRCq9lkW6WG194=; b=cDbiAENkIu0/60xM248auhLCrFDYRbjNP2ukzfYHtkSS8wPqe3nrUhJ6pvbOEyVjlQ piXPohxe0slYeba7YjB5WRzurzpGSldZNheEw8rJEyymQnFlC2qsQ/B9TR92050aCHsb Ea59v1T6f2kw7RA4RmvUqh91DUbEABmUdIypm74p/covZGpRxXu4OqUpFqCN8nANQzmE ykdSZ7orbr7mYPA0V97W8sBaRMaTco6AQiDT9Qdw0I9YwXF86uBeRO0tTogEULDAjSUM ItsGjjqdZXqqpxPfvB65ES1Zie1jnEykHmgjNZf4hiEz2d3XnPw0kmUMt9U9cIGnD8/q HLkQ== X-Gm-Message-State: APjAAAXKraSfVECb9pcaHv+Q18qbvPoHBNGI8ohn9v2I/rd19GXgUiU0 bCah6TTAYT4hMUEcemZcEsWOqKvA X-Received: by 2002:a24:694b:: with SMTP id e72mr251605itc.48.1556754106132; Wed, 01 May 2019 16:41:46 -0700 (PDT) Received: from localhost.localdomain (ppp94-29-35-107.pppoe.spdop.ru. [94.29.35.107]) by smtp.gmail.com with ESMTPSA id m3sm2392507ion.69.2019.05.01.16.41.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 16:41:45 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Tomeu Vizoso Cc: linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 02/16] PM / devfreq: tegra: Replace readl-writel with relaxed versions Date: Thu, 2 May 2019 02:38:01 +0300 Message-Id: <20190501233815.32643-3-digetx@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190501233815.32643-1-digetx@gmail.com> References: <20190501233815.32643-1-digetx@gmail.com> 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 There is no need to insert memory barrier on each readl/writel invocation, hence use the relaxed versions. Reviewed-by: Chanwoo Choi Signed-off-by: Dmitry Osipenko --- drivers/devfreq/tegra-devfreq.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/devfreq/tegra-devfreq.c b/drivers/devfreq/tegra-devfreq.c index 43cd1233f87b..f7378a42d184 100644 --- a/drivers/devfreq/tegra-devfreq.c +++ b/drivers/devfreq/tegra-devfreq.c @@ -191,23 +191,23 @@ static struct tegra_actmon_emc_ratio actmon_emc_ratios[] = { static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) { - return readl(tegra->regs + offset); + return readl_relaxed(tegra->regs + offset); } static void actmon_writel(struct tegra_devfreq *tegra, u32 val, u32 offset) { - writel(val, tegra->regs + offset); + writel_relaxed(val, tegra->regs + offset); } static u32 device_readl(struct tegra_devfreq_device *dev, u32 offset) { - return readl(dev->regs + offset); + return readl_relaxed(dev->regs + offset); } static void device_writel(struct tegra_devfreq_device *dev, u32 val, u32 offset) { - writel(val, dev->regs + offset); + writel_relaxed(val, dev->regs + offset); } static unsigned long do_percent(unsigned long val, unsigned int pct) -- 2.21.0