From: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH RFC 4/7] ARM: shmobile: Backup and restore L2CTLR in Suspend-to-RAM
Date: Fri, 26 Sep 2014 10:06:28 +0000 [thread overview]
Message-ID: <54253AA4.9010505@cogentembedded.com> (raw)
In-Reply-To: <5424D20C.1090406@renesas.com>
Hello.
On 9/26/2014 6:40 AM, Khiem Nguyen wrote:
> This is needed for CA15 only, to maintain L2CTLR register value
> set in bootloader.
> Signed-off-by: Khiem Nguyen <khiem.nguyen.xt@renesas.com>
[...]
> diff --git a/arch/arm/mach-shmobile/platsmp-apmu.c b/arch/arm/mach-shmobile/platsmp-apmu.c
> index fb6d3e5..f883697 100644
> --- a/arch/arm/mach-shmobile/platsmp-apmu.c
> +++ b/arch/arm/mach-shmobile/platsmp-apmu.c
[...]
> @@ -229,6 +230,13 @@ static int shmobile_smp_apmu_enter_suspend(suspend_state_t state)
> gic_cpu_if_down();
>
> writel_relaxed(0x2, cpucmcr);
> + if (read_cpuid_part() = ARM_CPU_PART_CORTEX_A15) {
> + is_a15_l2shutdown = 1;
> + asm volatile("mrc p15, 1, %0, c9 , c0, 2"
> + : "=r" (l2ctlr_value));
> + pr_debug("%s: l2ctlr: 0x%08x\n", __func__, l2ctlr_value);
> + } else
> + is_a15_l2shutdown = 0;
Both arms of *if* should have {} if at least one arm has it.
WBR, Sergei
next prev parent reply other threads:[~2014-09-26 10:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-26 2:40 [PATCH RFC 4/7] ARM: shmobile: Backup and restore L2CTLR in Suspend-to-RAM Khiem Nguyen
2014-09-26 10:06 ` Sergei Shtylyov [this message]
2014-09-29 0:09 ` Khiem Nguyen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54253AA4.9010505@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--cc=linux-sh@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.