Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2060600ybl; Thu, 19 Dec 2019 07:27:04 -0800 (PST) X-Google-Smtp-Source: APXvYqyYqoy1IJWjNlw1cfXaGPdiOrtMBiZnsgApSGxw/sHDI3D+C+hZ6ePvJ1XfKvyHnEfqTEE5 X-Received: by 2002:a05:6830:155a:: with SMTP id l26mr9597385otp.339.1576769224414; Thu, 19 Dec 2019 07:27:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576769224; cv=none; d=google.com; s=arc-20160816; b=cM2q+oRzktBFmQP2/Zb3pCGCMBCBvbfE+ksv6YBCqRI2pf+kN3YmU8lGP1aI+/MYPF ar50PSwy4NDy8hKZ850WZfcbUUNKjfy5F4LjjZSFDnAowX//FSnzAEdRjyguyg6mSs+6 JeOXt+4mAPWqQGBTwZtZk8qfcmYm3uDJ3C7eLufsX6M0xkUtpRb0ZEKdVzcLSqgHESCJ Y/fITnPmnuQTeA8T/74hfSfiD7e6h9U4mhTDCE9f03ORFOHY1ZFVI1EpkqLH3r/jZ5nR lAI8vkIjB0bXpp7Js9A8pou+8SxWAOO3ZTdKCQlmXvunCIVqZ37uE9U/cL3WtuqlOEN/ 2BpQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=yqXyqCEU/X28oi4oNMERZW19vUW8+ITl1VJ657B32AQ=; b=sQ6g7SD63KECEMrVieFudk142ckmpSFB5eg+dpjA1E3urKZmpplMlFTprcfBqdkKwH SuXBojoUBad/cvzE94RZkth1w24RbpBc0vVYwu6xNnvGZrnMq8ldqRUXhakry2IPGD/V JxjOIf9SzZjryhuGX/phHH/Bs7j+eL84guTBMs03g30b8pSUTcknTAiWHBXgtoz1zxBR YzONdASyYBBN1/7I4qky9di20RvZ52KQaR+HfiCPIzoH2gqw3swWensbzFSsDQnA3iR1 ZDpjsnRv1bCbbVdNFU2zTv/hFkfiwxBGC0LoQHkBEKTuoQvYnVa6X5j59T69IwMmFWjV woBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=F63mDoYG; 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 r1si3432248otq.298.2019.12.19.07.26.51; Thu, 19 Dec 2019 07:27:04 -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=@gmail.com header.s=20161025 header.b=F63mDoYG; 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 S1726905AbfLSPZ4 (ORCPT + 99 others); Thu, 19 Dec 2019 10:25:56 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34246 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbfLSPZ4 (ORCPT ); Thu, 19 Dec 2019 10:25:56 -0500 Received: by mail-lj1-f194.google.com with SMTP id z22so1857831ljg.1; Thu, 19 Dec 2019 07:25:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=yqXyqCEU/X28oi4oNMERZW19vUW8+ITl1VJ657B32AQ=; b=F63mDoYG+4XNcwtFC5rbojj7p2G1SYZ2dSzGNihTpA6GQ5Eaq8AB4BevQ7HB/YXE6L JDsuyeAN1tABCdOus9JeI0o/m29KUb42zGru4W+kyZENE1F078cKFExWKODh76lPV9v/ lKVRrBfEFEy0G2UoGF7HPeLjNCOFcuB8pD1z3i1060LdMdG/3hkFVVQlEdSjG5oIWdMD 4sRASqkHA5CGV/yTgttZnRKAWK7dR07tZSzFVLMvsXNYqVF6I5ihnPzbPFE+jAv0sAxw 2Y+10PXQHiPIpy3+7u2QJafe17FzsmQt6Cwwd+xIEM5CPQOft72hxhno5U1Q6bOu5f8d 0KbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=yqXyqCEU/X28oi4oNMERZW19vUW8+ITl1VJ657B32AQ=; b=ZALvkvPv1/8J+20QZvMb528exgBJnj5ztuluH378CqXc7esPpg5qV62QXs3+Rr2OU1 MR0A2m+3s4vmD1cZwuFneeyc44o6/Y+Mpz6RFhkv69zxJzTJXty+Ue9H8XsuYndS1tc2 V/WEIOjX+xREoCRGIo2lVeXpho379c9d4D39vqiXNjS9w9gXRoQRvjLZnqtmKrEeST1b k7rFZqXEJ0kiv0VQ8lydQ7TKzuigdID9jTCbhAsn6S+dOQ+jmee4regH2akiTZL5U5iO HXlRsX3TJ1ieeJ3aLPP3eb0D/F1aPszEsaFBJQSi1CeLgSOK4ch8a+I/kOY3T2mlTvWs YI7Q== X-Gm-Message-State: APjAAAUVJpb2hO8YhzKInkyf7lBePdfldIs4YKeP1+GNfUUNqyfWCluc 6iwnfBBiNOxyj0n2DGlP9pfaF1Qu X-Received: by 2002:a2e:81c7:: with SMTP id s7mr6419075ljg.3.1576769153989; Thu, 19 Dec 2019 07:25:53 -0800 (PST) Received: from [192.168.2.145] (79-139-233-37.dynamic.spd-mgts.ru. [79.139.233.37]) by smtp.googlemail.com with ESMTPSA id e9sm2922774ljp.87.2019.12.19.07.25.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Dec 2019 07:25:53 -0800 (PST) Subject: Re: [PATCH v1 1/3] gpio: tegra: Use generic readl_relaxed/writel_relaxed accessors To: Bartosz Golaszewski Cc: Thierry Reding , Jonathan Hunter , Linus Walleij , linux-gpio , linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org, LKML References: <20191215183047.9414-1-digetx@gmail.com> <20191215183047.9414-2-digetx@gmail.com> From: Dmitry Osipenko Message-ID: <1e214577-1abe-22e6-ca55-2e9806fdb9b0@gmail.com> Date: Thu, 19 Dec 2019 18:25:52 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 19.12.2019 14:01, Bartosz Golaszewski пишет: > niedz., 15 gru 2019 o 19:31 Dmitry Osipenko napisał(a): >> >> There is no point in using old-style raw accessors, the generic accessors >> do the same thing and also take into account CPU endianness. Tegra SoCs do >> not support big-endian mode in the upstream kernel, but let's switch away >> from the outdated things anyway, just to keep code up-to-date. >> >> Signed-off-by: Dmitry Osipenko >> --- >> drivers/gpio/gpio-tegra.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c >> index 6fdfe4c5303e..f6a382fbd12d 100644 >> --- a/drivers/gpio/gpio-tegra.c >> +++ b/drivers/gpio/gpio-tegra.c >> @@ -96,12 +96,12 @@ struct tegra_gpio_info { >> static inline void tegra_gpio_writel(struct tegra_gpio_info *tgi, >> u32 val, u32 reg) >> { >> - __raw_writel(val, tgi->regs + reg); >> + writel_relaxed(val, tgi->regs + reg); >> } >> >> static inline u32 tegra_gpio_readl(struct tegra_gpio_info *tgi, u32 reg) >> { >> - return __raw_readl(tgi->regs + reg); >> + return readl_relaxed(tgi->regs + reg); >> } >> >> static unsigned int tegra_gpio_compose(unsigned int bank, unsigned int port, >> -- >> 2.24.0 >> > > The entire series looks good to me, but I'll wait for Thierry's acks > just in case. Thank you very much for taking a look at the patches!