Received: by 10.192.165.156 with SMTP id m28csp1572117imm; Tue, 17 Apr 2018 01:24:37 -0700 (PDT) X-Google-Smtp-Source: AIpwx49CSZZDxu983P64PNo28Wr/x6UQJNRLE/WpMMtge1tF71pWX0z9i2OGsoHKYcffIbj54Sw1 X-Received: by 10.101.97.4 with SMTP id z4mr1035094pgu.354.1523953477880; Tue, 17 Apr 2018 01:24:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523953477; cv=none; d=google.com; s=arc-20160816; b=aMJufGEylGezLGHyWWdPkejjghO8HwgvHfYkjI9aXShJyMC7W4/qGOz7Gh8C5EhT3O TY65CL1hJARnKcyVrdnfOZvBqjIFD3kqUCkXDVS1WzoCcGriQ5JN9lBeqn8Lt0OmMPyl s7USb7NJqRZWE48WwTifNQKuJ3SXiVn2M9VpmXRgsY7Swf7K2HUVKQ8C9Czm8Pv+MXgp R8HyAG/pYN0UgvOBSNf3w/HsSB+xMlguhmWdv6KWpxVaH4VeQzQuLp92dxxYeM3P0hZ7 bmLyFr/KrbjpVXNNCL2w+FsIWFhEJD4OZgimQaiqJ0HS0ovruzDgCn7uAy1qRd31C3mR 35AA== 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 :arc-authentication-results; bh=4igGRfwRbspL5R+sNDxRIPq+6rDRuQmIKd9usY1kc0w=; b=ywxeaCMURSMXJxyoCNRjUAo0DOdjIGt7nrTrMHSUGrfMR+TyE88FGdwzf5HEDYJycZ qkOgmjA7+iKZHLz1E3KSfK3xCOrdvjobUnjP9LescxYVel/+L1qm3HVBOv/Xf7tfRysm CJNpI8wDBmCVaiskUsChfcg1qoHEZzYOJR7IvfxZL2HRqFxvkAq1PKY8URwDPpyAd0my vAaceZxEVbcL+Us9kQh/pbExycuGw/G8BY12Y5faLSmSsDzCv+dOn2RfANzxbrgOnw7M dx7j/2rCuFapXj+Iqm9G2kYPRshR3hB6shLb03YrzaQIc8jFIo4DGYX+0lO0XXZgBews pTtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=W0CpaJPN; 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 t20si12835103pfj.320.2018.04.17.01.24.20; Tue, 17 Apr 2018 01:24:37 -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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=W0CpaJPN; 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 S1752144AbeDQIXJ (ORCPT + 99 others); Tue, 17 Apr 2018 04:23:09 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:47086 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752608AbeDQIVG (ORCPT ); Tue, 17 Apr 2018 04:21:06 -0400 Received: by mail-lf0-f68.google.com with SMTP id j68-v6so25992206lfg.13 for ; Tue, 17 Apr 2018 01:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=4igGRfwRbspL5R+sNDxRIPq+6rDRuQmIKd9usY1kc0w=; b=W0CpaJPN/ZeO7ddN/qCp+y143hKFZxhSlPKAI80YaCD8uOdxDQmyo11JROx0oO5J9Z UKASpqJXmGlmqovyk9Mh38f0+4a1f0/HcacKbsrKnVY2HbuUA/M3dJQ0stN2Z2duA156 dQ5Lx/2kgnav9c6y2ntf8NEFn9rSQTtpNwGo4jhCyi7S28QxnFk0q4KplDb/CJEyIPYI +wePMyOynCcRAOfNZlLfD8u3yQi5jrrXaIn8ATavyywZP9j9qTGg1Lx8UVojmtkME9H5 BkFhL/O0M3tQ7YNrCKB4Cr3DIuF4HCVEzXaSXAo27ocl9NOkxMZLlnWyqP38+Sa/F+dL NzKQ== 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=4igGRfwRbspL5R+sNDxRIPq+6rDRuQmIKd9usY1kc0w=; b=UJoSbtXG8UxhzwRmsExZn+55jkGEzipbnDgw6Hoonhgst9sRVirwm0kr4oPDH4fJll 3RRUVmwrfoXGcIwUzb23w+EOKIk5k8CpczDSPQWOAU6c1PKjgMAZDZCVTJ8SB1XJwcXU dz9jopOHGhnZYMyNJRgzfwxw1hvzfxD4npV32YHfxrqZj6GFH1SZo3XQJ91HR7Q96DNP q1KjU5j5kxj8uQGRC7+ZXAy+HQRH2LXs5tVLyi2et3NkvjKqKhjuuSEjFoxdmqgNdazv wPerhwPNvYVGqyWiJ4iNe9icuEerecDDwQ9rl6BrsKLNdOksUWAFUIzJarWQeCVUy09B i66Q== X-Gm-Message-State: ALQs6tAIJZqn68WvlTJmYtPBBSLfB0MxWUR6Oj1SqefjB2QSACVKSr1j F6r0DoTxizPWeGglTby/3gZtnKWJ8mA= X-Received: by 10.46.158.5 with SMTP id e5mr812668ljk.16.1523953265250; Tue, 17 Apr 2018 01:21:05 -0700 (PDT) Received: from [192.168.0.127] ([31.173.84.142]) by smtp.gmail.com with ESMTPSA id o192-v6sm453579lfe.38.2018.04.17.01.21.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 01:21:04 -0700 (PDT) Subject: Re: [PATCH v6 07/11] ARM: sun9i: smp: Rename clusters's power-off To: =?UTF-8?Q?Myl=c3=a8ne_Josserand?= , 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 Cc: 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 References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-8-mylene.josserand@bootlin.com> From: Sergei Shtylyov Message-ID: Date: Tue, 17 Apr 2018 11:21:02 +0300 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180416215032.5023-8-mylene.josserand@bootlin.com> Content-Type: text/plain; charset=utf-8; format=flowed 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 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... > 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