Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp1362043pxu; Thu, 8 Oct 2020 09:37:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyHhL0Gt/4JBpC68onvo8gtL3hZC68s6Mpk062SadmU/K0L4pCTTdydUpn7G9kuKpqzDQxx X-Received: by 2002:a17:906:e949:: with SMTP id jw9mr9600639ejb.109.1602175064361; Thu, 08 Oct 2020 09:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602175064; cv=none; d=google.com; s=arc-20160816; b=syci96IrienXmoUDqDQ6Ne0XgB0mON2A/z2NvJAcBHfeTozAaF9kSrxjRX2LPUFKfh NQkFDNdq7C3zT3/sQNlflZ9R+EGGr79JzUP8bYiM9zJXIhDWlfHWg8fpYERCvdBTOK1B JsP/WO7C+snqIaDnmwiw+y2ZQizLtfTlEFDiveGyFc5T8z7aiwF0jnvMwhrAJ6AyzyA+ qyRMLW/nS5lHUrZzDauXU1ITzwlsLg0K7fQtGMXU5DxJsbHJykGfkMKbRuozLlmugc6Q UubwXdGgquII7YPZHHAAKRj+yGsdrLHJDySIjow/NPX1Y8DgOgAHyVKt8F4+DaEfEICT 5L/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6LrOBjyvywzVUOxBpR/Sw7dDdwdJuhXEZt1TnYIWH2M=; b=vsTjirq0T57z2uUMZOFrPaU9sidDolYN/iDhD/fzEeCro0kxMhv3UFpGGUyHe2FYm0 1N0KD1PXfnkvyPaThaiW/WhC+rHa8cfs5uC2S9ix3Muxwwwsf78NWVdipFc0ZIkJyBtQ zDFoikKC1EeA+fI3/ZvRD0ApWi7zvAickMT6STsbcDQZg3ZGl9Xq/qXlWnpWrpLCgooW TS0eYN6tqjUM3J44lBfdqMic/QU6oYbHVkWJr0NEaBQeqE4Pugco6dS1Z5dDiFliIUzE qjK6KYAvykCfEUf2iOdXn9kNbKt3+PtsaY78vWtmlOJcxf6HQs7O61If3C3bkZz/875j m+uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w19si3899306ejz.162.2020.10.08.09.37.21; Thu, 08 Oct 2020 09:37:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728202AbgJHKdF (ORCPT + 99 others); Thu, 8 Oct 2020 06:33:05 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37448 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbgJHKdF (ORCPT ); Thu, 8 Oct 2020 06:33:05 -0400 Received: by mail-wm1-f68.google.com with SMTP id j136so5972286wmj.2; Thu, 08 Oct 2020 03:33:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6LrOBjyvywzVUOxBpR/Sw7dDdwdJuhXEZt1TnYIWH2M=; b=c8tfhKsA3IfSZpA2px1ZmvmD6bq+pUGG1nnpnmBOExTvrXNKRLBj0KMpvtTY7tkMSV aTmHKTaabhi3JrnDWN90H/CHVUoKwoWYPeqeyuB/Oa+ZzBeG4JKthdAZxb7/wSFXD0e7 d77hla3w5BZnvxANb9cQQgB5PFj7WnJNEM1hZ/qjSd1p642tALlbL+DNvI2HE2+gRmnP nnJkrJNcWWHXPW8mDWqmm/J71eWChLmmBGFkLyvm8D9UbA/Ev9zpk8X57XAcs10QqQ2H JkW9PuprzILkNrc8i7Knr1xOFbNJOdwn6SzHb6zMd50tUCd4/OUGyTfPz0dUMip7E4FH cJbA== X-Gm-Message-State: AOAM530D5eTDmmcabRJaeWRBfQUcdbvc+NOTivgcwK5i1IxtDiLKI8Kg YYZ3FwuLFOX8LelxM9/4tDI= X-Received: by 2002:a1c:44e:: with SMTP id 75mr8136588wme.117.1602153182410; Thu, 08 Oct 2020 03:33:02 -0700 (PDT) Received: from kozik-lap ([194.230.155.194]) by smtp.googlemail.com with ESMTPSA id r68sm1056563wmr.37.2020.10.08.03.33.00 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 08 Oct 2020 03:33:01 -0700 (PDT) Date: Thu, 8 Oct 2020 12:32:58 +0200 From: Krzysztof Kozlowski To: Nicolin Chen Cc: thierry.reding@gmail.com, robh+dt@kernel.org, jonathanh@nvidia.com, linux-tegra@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/5] memory: tegra: Sort tegra210_swgroups by reg address Message-ID: <20201008103258.GA16358@kozik-lap> References: <20201008003746.25659-1-nicoleotsuka@gmail.com> <20201008003746.25659-4-nicoleotsuka@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20201008003746.25659-4-nicoleotsuka@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 07, 2020 at 05:37:44PM -0700, Nicolin Chen wrote: > This is a cleanup change to prepare for new swgroups. What type of cleanup? Any functional change? > > Signed-off-by: Nicolin Chen > --- > drivers/memory/tegra/tegra210.c | 20 ++++++++++---------- > 1 file changed, 10 insertions(+), 10 deletions(-) > > diff --git a/drivers/memory/tegra/tegra210.c b/drivers/memory/tegra/tegra210.c > index e8a7d266802c..b400802c9f14 100644 > --- a/drivers/memory/tegra/tegra210.c > +++ b/drivers/memory/tegra/tegra210.c > @@ -1020,32 +1020,32 @@ static const struct tegra_mc_client tegra210_mc_clients[] = { > }; > > static const struct tegra_smmu_swgroup tegra210_swgroups[] = { > - { .name = "dc", .swgroup = TEGRA_SWGROUP_DC, .reg = 0x240 }, > - { .name = "dcb", .swgroup = TEGRA_SWGROUP_DCB, .reg = 0x244 }, > { .name = "afi", .swgroup = TEGRA_SWGROUP_AFI, .reg = 0x238 }, > { .name = "avpc", .swgroup = TEGRA_SWGROUP_AVPC, .reg = 0x23c }, > - { .name = "hda", .swgroup = TEGRA_SWGROUP_HDA, .reg = 0x254 }, > + { .name = "dc", .swgroup = TEGRA_SWGROUP_DC, .reg = 0x240 }, > + { .name = "dcb", .swgroup = TEGRA_SWGROUP_DCB, .reg = 0x244 }, > { .name = "hc", .swgroup = TEGRA_SWGROUP_HC, .reg = 0x250 }, > + { .name = "hda", .swgroup = TEGRA_SWGROUP_HDA, .reg = 0x254 }, > + { .name = "isp2", .swgroup = TEGRA_SWGROUP_ISP2, .reg = 0x258 }, > { .name = "nvenc", .swgroup = TEGRA_SWGROUP_NVENC, .reg = 0x264 }, > { .name = "ppcs", .swgroup = TEGRA_SWGROUP_PPCS, .reg = 0x270 }, > { .name = "sata", .swgroup = TEGRA_SWGROUP_SATA, .reg = 0x274 }, > - { .name = "isp2", .swgroup = TEGRA_SWGROUP_ISP2, .reg = 0x258 }, > + { .name = "vi", .swgroup = TEGRA_SWGROUP_VI, .reg = 0x280 }, > + { .name = "vic", .swgroup = TEGRA_SWGROUP_VIC, .reg = 0x284 }, > { .name = "xusb_host", .swgroup = TEGRA_SWGROUP_XUSB_HOST, .reg = 0x288 }, > { .name = "xusb_dev", .swgroup = TEGRA_SWGROUP_XUSB_DEV, .reg = 0x28c }, > - { .name = "isp2b", .swgroup = TEGRA_SWGROUP_ISP2B, .reg = 0xaa4 }, > - { .name = "tsec", .swgroup = TEGRA_SWGROUP_TSEC, .reg = 0x294 }, > { .name = "a9avp", .swgroup = TEGRA_SWGROUP_A9AVP, .reg = 0x290 }, I must say I cannot find the order. By name - not. By swgroup name - not. By register - not. What is the order then? Best regards, Krzysztof > - { .name = "gpu", .swgroup = TEGRA_SWGROUP_GPU, .reg = 0xaac }, > + { .name = "tsec", .swgroup = TEGRA_SWGROUP_TSEC, .reg = 0x294 }, > { .name = "sdmmc1a", .swgroup = TEGRA_SWGROUP_SDMMC1A, .reg = 0xa94 }, > { .name = "sdmmc2a", .swgroup = TEGRA_SWGROUP_SDMMC2A, .reg = 0xa98 }, > { .name = "sdmmc3a", .swgroup = TEGRA_SWGROUP_SDMMC3A, .reg = 0xa9c }, > { .name = "sdmmc4a", .swgroup = TEGRA_SWGROUP_SDMMC4A, .reg = 0xaa0 }, > - { .name = "vic", .swgroup = TEGRA_SWGROUP_VIC, .reg = 0x284 }, > - { .name = "vi", .swgroup = TEGRA_SWGROUP_VI, .reg = 0x280 }, > + { .name = "isp2b", .swgroup = TEGRA_SWGROUP_ISP2B, .reg = 0xaa4 }, > + { .name = "gpu", .swgroup = TEGRA_SWGROUP_GPU, .reg = 0xaac }, > { .name = "nvdec", .swgroup = TEGRA_SWGROUP_NVDEC, .reg = 0xab4 }, > { .name = "ape", .swgroup = TEGRA_SWGROUP_APE, .reg = 0xab8 }, > - { .name = "nvjpg", .swgroup = TEGRA_SWGROUP_NVJPG, .reg = 0xac0 }, > { .name = "se", .swgroup = TEGRA_SWGROUP_SE, .reg = 0xabc }, > + { .name = "nvjpg", .swgroup = TEGRA_SWGROUP_NVJPG, .reg = 0xac0 }, > { .name = "axiap", .swgroup = TEGRA_SWGROUP_AXIAP, .reg = 0xacc }, > { .name = "etr", .swgroup = TEGRA_SWGROUP_ETR, .reg = 0xad0 }, > { .name = "tsecb", .swgroup = TEGRA_SWGROUP_TSECB, .reg = 0xad4 }, > -- > 2.17.1 >