Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4740433pxb; Tue, 28 Sep 2021 03:03:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5fA+rF5SSZym1Q7fabYuUsYGwsdqrFL6sYMe8uezzsrkmhtmgdPdVH34l35cu9c0G7X+x X-Received: by 2002:a17:906:2691:: with SMTP id t17mr5419703ejc.522.1632823390354; Tue, 28 Sep 2021 03:03:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632823390; cv=none; d=google.com; s=arc-20160816; b=A5jQsLiIdeOxjrfvL++vUr6/Is4kOYwG4J0hh06OhLiD9hIxYo4MDftuh5PdDH+8Xo YUFD4EyVvAKaWcFqTJkHAfYnhLlrf2+RzYh9DwfdarPWdf0avlqFt8YDidGN6t1mh+Rn i0MYPHxjRU58h5Uhou0Y5o4JRLBE+SW8ybCofeRpjnT8s97g62MFkIRQGs9DfrXBCpfc jmgHH7xd7OGL70xRPuy76kFnf8Y4tDoKLxFS9AtAbOTDpT40Ke5RQKbHMNY2+g8zgm/D VOBL9pYIcAvdts3RBY4pz8YekZOGI87aeqKtC/6l+j4l8LazNKf7FDXFAmcVkQEqBXJO jFWg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eIj+0oEXWIMSqTMlbFwG7TR7MFQLhOHUWGXD7pVetOo=; b=RoBTC5jIi1ScjlsXtp8Is1lKNUTcMB08HLqzwqSiGgvQ1420aQIYiONLl9DEHnA/RM au91cdbz0VBVGbycY4pQwz/QuVIFk/nKBYxbM4spjKa1n0RHbTmSo3f3ZO4oBJ7hZ8w/ YDcxYWLRK53r4Tw6QFYg5Z711eEcsIQIKc7YB7oinnUtsxe6oh8VC1tj8E6vKaJHtWc6 v/snFyBu5m8q1gCbafAEEgOftvmWhMRhZt/z45eMV0I5C9Nrz5LaE3Vd4shdBRWe3z4b eWtls8xxdKzfEJO78er2wtUbUSGdU8KcsF89OV7iHFOE3gg05FJeCUjVUp2P/xvTpff4 GRwQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c17si21806235ejc.333.2021.09.28.03.02.46; Tue, 28 Sep 2021 03:03:10 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240118AbhI1KCr (ORCPT + 99 others); Tue, 28 Sep 2021 06:02:47 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:58967 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239815AbhI1KCr (ORCPT ); Tue, 28 Sep 2021 06:02:47 -0400 Received: (Authenticated sender: alexandre.belloni@bootlin.com) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 09C38200020; Tue, 28 Sep 2021 10:01:05 +0000 (UTC) Date: Tue, 28 Sep 2021 12:01:05 +0200 From: Alexandre Belloni To: Claudiu Beznea Cc: nicolas.ferre@microchip.com, ludovic.desroches@microchip.com, linux@armlinux.org.uk, robh+dt@kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/3] ARM: at91: pm: group constants and addresses loading Message-ID: References: <20210928084257.2188017-1-claudiu.beznea@microchip.com> <20210928084257.2188017-3-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210928084257.2188017-3-claudiu.beznea@microchip.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On 28/09/2021 11:42:56+0300, Claudiu Beznea wrote: > Group constants and addresses loading. This commit prepares the field for > the next one. Added fixes tag on this commit as the next one will fail > to apply if backported alone to older kernels. The proper notation is to use Depends-on: on the next patch. > > Fixes: f0bbf17958e8 ("ARM: at91: pm: add self-refresh support for sama7g5") > Signed-off-by: Claudiu Beznea > --- > arch/arm/mach-at91/pm_suspend.S | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > > diff --git a/arch/arm/mach-at91/pm_suspend.S b/arch/arm/mach-at91/pm_suspend.S > index cbd61a3bcab1..34f251fdb743 100644 > --- a/arch/arm/mach-at91/pm_suspend.S > +++ b/arch/arm/mach-at91/pm_suspend.S > @@ -1014,6 +1014,15 @@ ENTRY(at91_pm_suspend_in_sram) > mov tmp1, #0 > mcr p15, 0, tmp1, c7, c10, 4 > > + ldr tmp1, [r0, #PM_DATA_PMC_MCKR_OFFSET] > + str tmp1, .mckr_offset > + ldr tmp1, [r0, #PM_DATA_PMC_VERSION] > + str tmp1, .pmc_version > + ldr tmp1, [r0, #PM_DATA_MEMCTRL] > + str tmp1, .memtype > + ldr tmp1, [r0, #PM_DATA_MODE] > + str tmp1, .pm_mode > + > ldr tmp1, [r0, #PM_DATA_PMC] > str tmp1, .pmc_base > ldr tmp1, [r0, #PM_DATA_RAMC0] > @@ -1022,14 +1031,6 @@ ENTRY(at91_pm_suspend_in_sram) > str tmp1, .sramc1_base > ldr tmp1, [r0, #PM_DATA_RAMC_PHY] > str tmp1, .sramc_phy_base > - ldr tmp1, [r0, #PM_DATA_MEMCTRL] > - str tmp1, .memtype > - ldr tmp1, [r0, #PM_DATA_MODE] > - str tmp1, .pm_mode > - ldr tmp1, [r0, #PM_DATA_PMC_MCKR_OFFSET] > - str tmp1, .mckr_offset > - ldr tmp1, [r0, #PM_DATA_PMC_VERSION] > - str tmp1, .pmc_version > /* Both ldrne below are here to preload their address in the TLB */ > ldr tmp1, [r0, #PM_DATA_SHDWC] > str tmp1, .shdwc > -- > 2.25.1 > -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com