Received: by 10.192.165.156 with SMTP id m28csp862468imm; Tue, 17 Apr 2018 22:53:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx49fvNfD8P7TOOqkglWwhBZYJv7nx1YJhhlhXSgUWRV7aftPmxHt5u1vNQEPgZWQqKBgi354 X-Received: by 2002:a17:902:b60f:: with SMTP id b15-v6mr829838pls.12.1524030807303; Tue, 17 Apr 2018 22:53:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524030807; cv=none; d=google.com; s=arc-20160816; b=QFft91smhhoMASokRU+WTDBSyShXdnoUDMB7sB3aY0dpNEoMKM7g5ixiEnKFm2Tzg9 mfaPcXeP5D9ch6P+P3mAyBjfZSmkZi24aW5+R9oi85MiEGPLEoWo79VNE+qjX59k0JOY YBa4hP/V+pHyzVfmzrF63ChYmVLhEgdWq3piecGEUWKHm6bCxBmSuWCqOCZ9kMJSf+VV HWBKSCQfiOYR0rURsPjJ5LcGGg3gETSbhD8iifkk8EfP8H48e+2KPaPIvSxGp0Fk/8e8 uazCnSOTZ6jKVin7AH8f+fMjQ/v7QCwKFe+OmdWRQsv5d2vd1jeRmZgcDpc0cOq1/K2t 7tAg== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=Y6YSsDRIyQRaSMC0noYsbPCBe77eN6DexMpd4wRF6R4=; b=wznkc82OUDZc+s1lAl57+DWzNC1EAZKXzq6BR7V+LTZjQMtRmGayqbjrhhypOyI7UX jK6a461UtLqMQOwV7YFccMvKdmhVZ10DeXJFLCnrc7IthmzJyFK1nOEultF/w/h0QyU1 sEHBqId16OH3dfdQ6VKZQCTzQkaqvEjKCPVQmS19uqoOFVSvUFyrZ23CSymMNGDSyNv4 G5aEeTij6S+6Bfs9YW4kqqaswQYHjODIabPOwH3uQXc8fSDPZ0Zt06lELqmXScDbx443 lf9PH/Y6hOEUnxPx+eDH95bplwIrV4wkjVrfjwjDDx1h4zc2kOqsFCAOIfLKrW95CFgd 382A== ARC-Authentication-Results: i=1; mx.google.com; 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 f62si491862pgc.68.2018.04.17.22.53.12; Tue, 17 Apr 2018 22:53:27 -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; 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 S1752634AbeDRFwF convert rfc822-to-8bit (ORCPT + 99 others); Wed, 18 Apr 2018 01:52:05 -0400 Received: from mail.bootlin.com ([62.4.15.54]:51783 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750718AbeDRFwE (ORCPT ); Wed, 18 Apr 2018 01:52:04 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 0EFF920824; Wed, 18 Apr 2018 07:52:02 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from dell-desktop.home (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 91E6E206A0; Wed, 18 Apr 2018 07:51:51 +0200 (CEST) Date: Wed, 18 Apr 2018 07:51:51 +0200 From: =?UTF-8?B?TXlsw6huZQ==?= Josserand To: Sergei Shtylyov Cc: linux@armlinux.org.uk, maxime.ripard@bootlin.com, wens@csie.org, marc.zyngier@arm.com, mark.rutland@arm.com, robh+dt@kernel.org, horms@verge.net.au, geert@linux-m68k.org, magnus.damm@gmail.com, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, clabbe.montjoie@gmail.com, quentin.schulz@bootlin.com, thomas.petazzoni@bootlin.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 07/11] ARM: sun9i: smp: Rename clusters's power-off Message-ID: <20180418075151.3542f7cd@dell-desktop.home> In-Reply-To: References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-8-mylene.josserand@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Tue, 17 Apr 2018 11:21:02 +0300 Sergei Shtylyov wrote: > Hello! > > On 4/17/2018 12:50 AM, Mylène Josserand wrote: > > > To prepare the support for sun8i-a83t, rename the variable name > > s/variable/macro/ maybe? Also "rename the ... name" sounds tautological... Thank you for the correction. Best regards, Mylène -- Mylène Josserand, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering http://bootlin.com > > > that handles the power-off of clusters because it is different from > > sun9i-a80 to sun8i-a83t. > > > > The power off register for clusters are different from a80 and a83t. > > > > Signed-off-by: Mylène Josserand > > Acked-by: Maxime Ripard > > Reviewed-by: Chen-Yu Tsai > > --- > > arch/arm/mach-sunxi/mc_smp.c | 6 +++--- > > 1 file changed, 3 insertions(+), 3 deletions(-) > > > > diff --git a/arch/arm/mach-sunxi/mc_smp.c b/arch/arm/mach-sunxi/mc_smp.c > > index 727968d6a3e5..03f021d0c73e 100644 > > --- a/arch/arm/mach-sunxi/mc_smp.c > > +++ b/arch/arm/mach-sunxi/mc_smp.c > > @@ -60,7 +60,7 @@ > > #define PRCM_CPU_PO_RST_CTRL_CORE(n) BIT(n) > > #define PRCM_CPU_PO_RST_CTRL_CORE_ALL 0xf > > #define PRCM_PWROFF_GATING_REG(c) (0x100 + 0x4 * (c)) > > -#define PRCM_PWROFF_GATING_REG_CLUSTER BIT(4) > > +#define PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I BIT(4) > > #define PRCM_PWROFF_GATING_REG_CORE(n) BIT(n) > > #define PRCM_PWR_SWITCH_REG(c, cpu) (0x140 + 0x10 * (c) + 0x4 * (cpu)) > > #define PRCM_CPU_SOFT_ENTRY_REG 0x164 > > @@ -255,7 +255,7 @@ static int sunxi_cluster_powerup(unsigned int cluster) > > > > /* clear cluster power gate */ > > reg = readl(prcm_base + PRCM_PWROFF_GATING_REG(cluster)); > > - reg &= ~PRCM_PWROFF_GATING_REG_CLUSTER; > > + reg &= ~PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I; > > writel(reg, prcm_base + PRCM_PWROFF_GATING_REG(cluster)); > > udelay(20); > > > > @@ -452,7 +452,7 @@ static int sunxi_cluster_powerdown(unsigned int cluster) > > /* gate cluster power */ > > pr_debug("%s: gate cluster power\n", __func__); > > reg = readl(prcm_base + PRCM_PWROFF_GATING_REG(cluster)); > > - reg |= PRCM_PWROFF_GATING_REG_CLUSTER; > > + reg |= PRCM_PWROFF_GATING_REG_CLUSTER_SUN9I; > > writel(reg, prcm_base + PRCM_PWROFF_GATING_REG(cluster)); > > udelay(20); > > > > MBR, Sergei