diff mbox series

[2/3] sysreset: psci: enable DM_FLAG_PRE_RELOC

Message ID 20230406102319.17898-2-peng.fan@oss.nxp.com
State Accepted
Commit 439b9383ee1a22ffb589e007745ffbeaf7806465
Delegated to: Tom Rini
Headers show
Series [1/3] firmware: psci: enable DM_FLAG_PRE_RELOC | expand

Commit Message

Peng Fan (OSS) April 6, 2023, 10:23 a.m. UTC
From: Peng Fan <peng.fan@nxp.com>

It is possible that cpu core may reset before relocation with PSCI reset

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/sysreset/sysreset_psci.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tom Rini April 26, 2023, 12:31 p.m. UTC | #1
On Thu, Apr 06, 2023 at 06:23:18PM +0800, Peng Fan (OSS) wrote:

> From: Peng Fan <peng.fan@nxp.com>
> 
> It is possible that cpu core may reset before relocation with PSCI reset
> 
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/drivers/sysreset/sysreset_psci.c b/drivers/sysreset/sysreset_psci.c
index 83ecbcb9d2c..30c4b9c1f5d 100644
--- a/drivers/sysreset/sysreset_psci.c
+++ b/drivers/sysreset/sysreset_psci.c
@@ -34,4 +34,5 @@  U_BOOT_DRIVER(psci_sysreset) = {
 	.name = "psci-sysreset",
 	.id = UCLASS_SYSRESET,
 	.ops = &psci_sysreset_ops,
+	.flags = DM_FLAG_PRE_RELOC,
 };