All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick Delaunay <patrick.delaunay@st.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/6] uniphier: psci: save context id in cpu_on command
Date: Mon, 16 Apr 2018 10:15:10 +0200	[thread overview]
Message-ID: <1523866512-11112-4-git-send-email-patrick.delaunay@st.com> (raw)
In-Reply-To: <1523866512-11112-1-git-send-email-patrick.delaunay@st.com>

Replace the psci_save_target_pc call by the new function
psci_save(cpu, pc,context_id)

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 arch/arm/mach-uniphier/arm32/psci.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/arch/arm/mach-uniphier/arm32/psci.c b/arch/arm/mach-uniphier/arm32/psci.c
index efe7419..af33cd4 100644
--- a/arch/arm/mach-uniphier/arm32/psci.c
+++ b/arch/arm/mach-uniphier/arm32/psci.c
@@ -131,7 +131,8 @@ void psci_arch_init(void)
 
 u32 uniphier_psci_holding_pen_release __secure_data = 0xffffffff;
 
-int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point)
+int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point,
+			 u32 context_id)
 {
 	u32 cpu = cpuid & 0xff;
 
@@ -139,9 +140,11 @@ int __secure psci_cpu_on(u32 function_id, u32 cpuid, u32 entry_point)
 	debug_puth(cpuid);
 	debug_puts(", entry_point=");
 	debug_puth(entry_point);
+	debug_puts(", context_id=");
+	debug_puth(context_id);
 	debug_puts("\n");
 
-	psci_save_target_pc(cpu, entry_point);
+	psci_save(cpu, entry_point, context_id);
 
 	/* We assume D-cache is off, so do not call flush_dcache() here */
 	uniphier_psci_holding_pen_release = cpu;
-- 
2.7.4

  parent reply	other threads:[~2018-04-16  8:15 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16  8:15 [U-Boot] [PATCH 1/6] ls102xa: psci: save context id in cpu_on command Patrick Delaunay
2018-04-16  8:15 ` [U-Boot] [PATCH 2/6] imx7: " Patrick Delaunay
2018-05-08  0:44   ` [U-Boot] [U-Boot, " Tom Rini
2018-05-08  0:44   ` Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 3/6] tegra: " Patrick Delaunay
2018-04-16 16:17   ` Stephen Warren
2018-04-18 13:58     ` Patrick DELAUNAY
2018-04-18 15:23       ` Stephen Warren
2018-04-18 16:07         ` Tom Rini
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-16  8:15 ` Patrick Delaunay [this message]
2018-04-20  9:06   ` [U-Boot] [PATCH 4/6] uniphier: " Masahiro Yamada
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 5/6] sunxi: " Patrick Delaunay
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-04-16  8:15 ` [U-Boot] [PATCH 6/6] psci: arm: remove armv7 function psci_save_target_pc Patrick Delaunay
2018-05-08  0:45   ` [U-Boot] [U-Boot, " Tom Rini
2018-05-08  0:44 ` [U-Boot] [U-Boot, 1/6] ls102xa: psci: save context id in cpu_on command Tom Rini

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=1523866512-11112-4-git-send-email-patrick.delaunay@st.com \
    --to=patrick.delaunay@st.com \
    --cc=u-boot@lists.denx.de \
    /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.